fix: 修复 vm.$store.getters.refreshToken is not a function 问题
Signed-off-by: chaining <ning.chai@qq.com>
This commit is contained in:
parent
24f0e4dd1f
commit
d579be7db7
@ -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)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user