From d579be7db749f3afcaf86d148e45bad7b1779820 Mon Sep 17 00:00:00 2001 From: chaining Date: Fri, 6 Jan 2023 08:55:55 +0000 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20vm.$store.getters.r?= =?UTF-8?q?efreshToken=20is=20not=20a=20function=20=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: chaining --- yudao-ui-app/utils/request/responseInterceptors.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yudao-ui-app/utils/request/responseInterceptors.js b/yudao-ui-app/utils/request/responseInterceptors.js index 32b91875d..aa8c73a11 100644 --- a/yudao-ui-app/utils/request/responseInterceptors.js +++ b/yudao-ui-app/utils/request/responseInterceptors.js @@ -30,7 +30,7 @@ module.exports = vm => { if (!isRefreshToken) { isRefreshToken = true // 1. 如果获取不到刷新令牌,则只能执行登出操作 - if (!vm.$store.getters.refreshToken()) { + if (!vm.$store.getters.refreshToken) { vm.$store.commit('CLEAR_LOGIN_INFO') return Promise.reject(res) }