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) {
|
switch (err.status) {
|
||||||
case 400:
|
case 400:
|
||||||
case 401:
|
case 401:
|
||||||
redirectToLogin();
|
return redirectToLogin();
|
||||||
break;
|
|
||||||
default:
|
default:
|
||||||
return new Promise(resolve => {
|
return new Promise(resolve => {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
@ -58,7 +57,6 @@ export default class Auth {
|
||||||
}, 2000);
|
}, 2000);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
console.error(err);
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
return loadWithRetry();
|
return loadWithRetry();
|
||||||
|
|
Loading…
Reference in New Issue