diff --git a/src/utils/zipdownload.js b/src/utils/zipdownload.js index c44775ee..83accd64 100644 --- a/src/utils/zipdownload.js +++ b/src/utils/zipdownload.js @@ -37,6 +37,12 @@ export function downLoadZipManage(str, filename,fun) { headers: { 'Authorization': 'Bearer ' + getCookieForName("token") } }).then(res => { console.log("downLoadZipManage res nginx ==> ",res) + if(res.headers.ecode == 4){ + //TODO1-1 弹出框 + this.$message.error("权限不足!"); + return; + } + resolveBlob(res, mimeMap.xlsx,filename) if(fun) fun() })