mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-14 06:57:35 +08:00
code refactor
This commit is contained in:
+2
-1
@@ -42,7 +42,8 @@ axios.interceptors.response.use(response => {
|
||||
|| errorCode === 202003 // current token is expired
|
||||
|| errorCode === 202004 // current token type is invalid
|
||||
|| errorCode === 202005 // current token requires two factor authorization
|
||||
|| errorCode === 202006) { // current token does not require two factor authorization
|
||||
|| errorCode === 202006 // current token does not require two factor authorization
|
||||
) {
|
||||
userState.clearTokenAndUserInfo();
|
||||
location.reload();
|
||||
return Promise.reject({ processed: true });
|
||||
|
||||
Reference in New Issue
Block a user