diff --git a/yudao-ui-app/util/request/responseInterceptors.js b/yudao-ui-app/util/request/responseInterceptors.js index dabac9928a..ca858313ee 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) //其他错误信息统一处理