From 1f0e17bfdb67ee0e2c8b18d53a3fce1d9f8f1246 Mon Sep 17 00:00:00 2001 From: danshihao Date: Tue, 18 Jun 2024 10:21:02 +0800 Subject: [PATCH] =?UTF-8?q?[update=20=E7=BD=91=E7=BB=9C=E8=AF=B7=E6=B1=82]?= =?UTF-8?q?=20wp29=E5=92=8Ciso=E6=8E=A5=E5=8F=A3=E6=8C=82=E4=BA=86?= =?UTF-8?q?=E5=B0=B1=E4=B8=8D=E6=8F=90=E7=A4=BA=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/screenRequest/request.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/screenRequest/request.js b/src/screenRequest/request.js index 17df569..b656425 100644 --- a/src/screenRequest/request.js +++ b/src/screenRequest/request.js @@ -20,6 +20,12 @@ const err = (error) => { const token = Vue.ls.get(ACCESS_TOKEN) // console.log('------异常响应------', token) // console.log('------异常响应------', error.response.status) + + // 如果ISO和WP29挂了,就不提示 + let tipFlag = true + if(error.config.url.indexOf('/WPApi') === 0 || error.config.url.indexOf('/ISO') === 0) { + tipFlag = false + } switch (error.response.status) { case 403: notification.error({ message: '系统提示', description: '拒绝访问', duration: 4 }) @@ -60,7 +66,7 @@ const err = (error) => { } break case 404: - notification.error({ message: '系统提示', description: '很抱歉,资源未找到!', duration: 4 }) + tipFlag && notification.error({ message: '系统提示', description: '很抱歉,资源未找到!', duration: 4 }) break case 504: notification.error({ message: '系统提示', description: '网络超时' }) @@ -76,7 +82,7 @@ const err = (error) => { } break default: - notification.error({ + tipFlag && notification.error({ message: '系统提示', description: data.message, duration: 4