数据模板导入、数据导出
This commit is contained in:
@@ -249,4 +249,11 @@ export async function blobValidate(data) {
|
||||
} catch (error) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
// 通用下载方法
|
||||
export function download(url) {
|
||||
// window.location.href = baseURL + "/common/download?fileName=" + encodeURI(fileName) + "&delete=" + true;
|
||||
// window.open(baseURL + "/common/download?fileName=" + encodeURI(fileName) + "&delete=" + true)
|
||||
window.open(import.meta.env.VITE_APP_BASE_API + url)
|
||||
}
|
||||
Reference in New Issue
Block a user