mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-07 00:47:19 +08:00
fix: token过期,刷新死循环
This commit is contained in:
parent
45f912c2f5
commit
4e506555ad
@ -68,6 +68,7 @@ export const useUserStore = defineStore({
|
||||
},
|
||||
// 刷新token
|
||||
async refreshToken(data) {
|
||||
removeToken();
|
||||
return refreshToken(data).then(data => {
|
||||
if (data) {
|
||||
setToken(data);
|
||||
|
Loading…
x
Reference in New Issue
Block a user