fix 前端通用下载方法
This commit is contained in:
@@ -135,10 +135,10 @@ export function showColumn(columns, value) {
|
||||
}
|
||||
|
||||
// 通用下载方法
|
||||
export function download(fileName) {
|
||||
export function download(url, fileName) {
|
||||
// window.location.href = baseURL + "/common/download?fileName=" + encodeURI(fileName) + "&delete=" + true;
|
||||
// window.open(baseURL + "/common/download?fileName=" + encodeURI(fileName) + "&delete=" + true)
|
||||
window.open(baseURL + fileName)
|
||||
window.open(baseURL + url)
|
||||
}
|
||||
|
||||
// 字符串格式化(%s )
|
||||
|
||||
Reference in New Issue
Block a user