数据模板导入、数据导出

This commit is contained in:
陈淳
2022-09-27 19:27:17 +08:00
parent 6ce05984d5
commit 4997e25cdc
13 changed files with 115 additions and 26 deletions

View File

@@ -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)
}