From 8ddae95dc742d2640385bc25c1b1fa85e9507734 Mon Sep 17 00:00:00 2001 From: wangqing <250543222@qq.com> Date: Tue, 9 Mar 2021 22:17:40 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E7=99=BB=E5=BD=95=E5=A4=B1?= =?UTF-8?q?=E6=95=88=E9=87=8D=E6=96=B0=E7=99=BB=E5=BD=95=E6=97=A0=E6=95=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/api/index.js b/src/api/index.js index e5d8878..33cbc3e 100644 --- a/src/api/index.js +++ b/src/api/index.js @@ -77,10 +77,11 @@ api.interceptors.response.use( confirmButtonText: '重新登录', cancelButtonText: '取消', type: 'warning' - }).then(() => { // 重置状态 + }).then(() => { + toLogin() + // 重置状态 this.$store.dispatch('global/loginExpired', false).then(() => { }) - toLogin() }).catch(() => { })