fix: 修复 vm.$store.getters.refreshToken is not a function 问题

Signed-off-by: chaining <ning.chai@qq.com>
This commit is contained in:
chaining 2023-01-06 08:55:55 +00:00 committed by Gitee
parent 24f0e4dd1f
commit d579be7db7
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -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)
}