Skip to content

Commit 4e50655

Browse files
committed
fix: token过期,刷新死循环
1 parent 45f912c commit 4e50655

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/store/modules/user.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ export const useUserStore = defineStore({
6868
},
6969
// 刷新token
7070
async refreshToken(data) {
71+
removeToken();
7172
return refreshToken(data).then(data => {
7273
if (data) {
7374
setToken(data);

0 commit comments

Comments
 (0)