From 9c1761db099bdfabc4e3f9d31d9fb352b288d59e Mon Sep 17 00:00:00 2001 From: gengxin Date: Mon, 10 Mar 2025 19:24:22 +0800 Subject: [PATCH] =?UTF-8?q?1.=20=E4=BF=A1=E4=BB=BB=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/zipdownload.js | 6 ++++++ 1 file changed, 6 insertions(+) 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() })