mirror of
https://github.com/pure-admin/pure-admin-thin.git
synced 2025-11-11 13:13:38 +08:00
fix: token过期,刷新死循环
This commit is contained in:
@@ -68,6 +68,7 @@ export const useUserStore = defineStore({
|
||||
},
|
||||
// 刷新token
|
||||
async refreshToken(data) {
|
||||
removeToken();
|
||||
return refreshToken(data).then(data => {
|
||||
if (data) {
|
||||
setToken(data);
|
||||
|
||||
Reference in New Issue
Block a user