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