fix: token过期,刷新死循环
This commit is contained in:
parent
97193a71a6
commit
d3cabb0f33
@ -68,6 +68,7 @@ export const useUserStore = defineStore({
|
||||
},
|
||||
// 刷新token
|
||||
async refreshToken(data) {
|
||||
removeToken();
|
||||
return refreshToken(data).then(data => {
|
||||
if (data) {
|
||||
setToken(data);
|
||||
|
Loading…
Reference in New Issue
Block a user