From 64f244aa7a2182d6832b714f04f04f993d9bb5f4 Mon Sep 17 00:00:00 2001 From: chenjinsong <523037378@qq.com> Date: Mon, 11 May 2020 16:11:06 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20label=E6=A0=B7=E5=BC=8F=E5=8F=98?= =?UTF-8?q?=E6=9B=B4=E7=AD=89=201.label=E6=A0=B7=E5=BC=8F=E5=8F=98?= =?UTF-8?q?=E6=9B=B4=202.=E7=94=A8=E6=88=B7=E7=99=BB=E5=BD=95=E6=8B=A6?= =?UTF-8?q?=E6=88=AA=E6=96=B0=E5=A2=9E=E4=B8=80=E4=BA=9B=E7=8A=B6=E6=80=81?= =?UTF-8?q?=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../common/bottomBox/tabs/alertMessageTab.vue | 14 ++- .../src/components/page/alert/list.vue | 18 +++- .../src/components/page/alert/nzAlertTag.vue | 96 +++++++++++++++++++ nezha-fronted/src/http.js | 6 +- 4 files changed, 122 insertions(+), 12 deletions(-) create mode 100644 nezha-fronted/src/components/page/alert/nzAlertTag.vue diff --git a/nezha-fronted/src/components/common/bottomBox/tabs/alertMessageTab.vue b/nezha-fronted/src/components/common/bottomBox/tabs/alertMessageTab.vue index 76b0000f9..acec35398 100644 --- a/nezha-fronted/src/components/common/bottomBox/tabs/alertMessageTab.vue +++ b/nezha-fronted/src/components/common/bottomBox/tabs/alertMessageTab.vue @@ -88,10 +88,14 @@ - -->
@@ -162,10 +166,12 @@ + + diff --git a/nezha-fronted/src/http.js b/nezha-fronted/src/http.js index 9d90a3827..f340ed05e 100644 --- a/nezha-fronted/src/http.js +++ b/nezha-fronted/src/http.js @@ -20,14 +20,12 @@ axios.interceptors.request.use(config => { }, err => Promise.reject(err) ); +const accountErrorCode = [518003, 518004, 518005, 518006, 518007, 518008]; //账号锁定等 axios.interceptors.response.use( response => { if(response.status === 200){ - if(response.data.code == 518008) { + if(accountErrorCode.indexOf(response.data.code) != -1) { window.location.href = "/"; - /*router.push({ - path: "/login" - });*/ } } return response