From 73f53861b20a0819cccd3ee5d40227d497c19c4d Mon Sep 17 00:00:00 2001 From: sfmind Date: Mon, 2 May 2022 17:58:48 +0800 Subject: [PATCH] =?UTF-8?q?vuex=E7=BB=9F=E4=B8=80=E5=91=BD=E5=90=8D?= =?UTF-8?q?=E9=A3=8E=E6=A0=BC:=E8=A1=A5=E5=85=85=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- yudao-ui-app/util/request/responseInterceptors.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yudao-ui-app/util/request/responseInterceptors.js b/yudao-ui-app/util/request/responseInterceptors.js index dabac9928..ca858313e 100644 --- a/yudao-ui-app/util/request/responseInterceptors.js +++ b/yudao-ui-app/util/request/responseInterceptors.js @@ -11,7 +11,7 @@ module.exports = vm => { return res.data } else if(res.data.code === 401) { //用户未登录或登录token已过期 - vm.$store.commit('clearLoginInfo') + vm.$store.commit('CLEAR_LOGIN_INFO') } else { console.log(res) //其他错误信息统一处理