fix: token过期,刷新死循环

This commit is contained in:
xiaoxian521 2022-09-07 15:23:06 +08:00
parent 97193a71a6
commit d3cabb0f33

View File

@ -68,6 +68,7 @@ export const useUserStore = defineStore({
},
// 刷新token
async refreshToken(data) {
removeToken();
return refreshToken(data).then(data => {
if (data) {
setToken(data);