From bd531a757a74ec918d0444f8041bfc5e2aed3f1b Mon Sep 17 00:00:00 2001 From: "453530270@qq.com" Date: Sun, 21 Jan 2024 13:05:41 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8E=E7=AB=AF=E7=99=BB=E5=BD=95=E8=BF=87?= =?UTF-8?q?=E6=9C=9F=EF=BC=8C=E5=89=8D=E7=AB=AF=E6=B3=A8=E9=94=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- utils/request/index.js | 1 + 1 file changed, 1 insertion(+) diff --git a/utils/request/index.js b/utils/request/index.js index a973b7f..9de1400 100644 --- a/utils/request/index.js +++ b/utils/request/index.js @@ -109,6 +109,7 @@ $http.dataFactory = async res => { // 提示登录 if(res.response.statusCode==401){ + store.dispatch('Logout') return Promise.reject({ statusCode: res.response.statusCode, errMsg: '登录失效了,请重新登录系统'