左侧列表权限受控,修改备注

This commit is contained in:
zhangsir
2024-05-13 19:00:32 +08:00
parent 2069cadc5c
commit 095f661918
6 changed files with 39 additions and 8 deletions

View File

@@ -18,6 +18,18 @@ export function downLoadZip(str, filename) {
resolveBlob(res, mimeMap.zip,filename)
})
}
const baseUrlManage = process.env.VUE_APP_BASE_API
export function downLoadZipManage(str, filename) {
var url = baseUrlManage + str
axios({
method: 'get',
url: url,
responseType: 'blob',
headers: { 'Authorization': 'Bearer ' + getCookieForName("token") }
}).then(res => {
resolveBlob(res, mimeMap.xlsx,filename)
})
}
/**
* 解析blob响应内容并下载
* @param {*} res blob响应内容