!356 uniapp refreshToken is not a function 问题修复

Merge pull request !356 from chaining/N/A
This commit is contained in:
芋道源码 2023-01-07 01:21:10 +00:00 committed by Gitee
commit 0f95e1e173
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
1 changed files with 1 additions and 1 deletions

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