fix(salix): refs #7272 #7272 Errors when Token not exists
gitea/salix/pipeline/pr-dev This commit looks good
Details
gitea/salix/pipeline/pr-dev This commit looks good
Details
This commit is contained in:
parent
70c33d9040
commit
da3c4cb8fc
|
@ -47,8 +47,7 @@ export default class Auth {
|
|||
switch (err.status) {
|
||||
case 400:
|
||||
case 401:
|
||||
redirectToLogin();
|
||||
break;
|
||||
return redirectToLogin();
|
||||
default:
|
||||
return new Promise(resolve => {
|
||||
setTimeout(() => {
|
||||
|
@ -58,7 +57,6 @@ export default class Auth {
|
|||
}, 2000);
|
||||
});
|
||||
}
|
||||
console.error(err);
|
||||
});
|
||||
};
|
||||
return loadWithRetry();
|
||||
|
|
Loading…
Reference in New Issue