mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-22 23:31:52 +08:00
!356 uniapp refreshToken is not a function 问题修复
Merge pull request !356 from chaining/N/A
This commit is contained in:
commit
0f95e1e173
@ -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