fix: token过期,刷新死循环

This commit is contained in:
xiaoxian521 2022-09-06 23:22:06 +08:00
parent 45f912c2f5
commit 4e506555ad

View File

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