mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-16 07:57:33 +08:00
don't clear application lock when user token expired
This commit is contained in:
+1
-1
@@ -44,7 +44,7 @@ axios.interceptors.response.use(response => {
|
||||
|| errorCode === 202005 // current token requires two factor authorization
|
||||
|| errorCode === 202006 // current token does not require two factor authorization
|
||||
) {
|
||||
userState.clearTokenAndUserInfo();
|
||||
userState.clearTokenAndUserInfo(false);
|
||||
location.reload();
|
||||
return Promise.reject({ processed: true });
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user