Skip to content

Commit 641c631

Browse files
authored
Revert "Fixed: KOKO component still accepts input when encountering 401 error"
This reverts commit 8b12892.
1 parent 664bff8 commit 641c631

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/app/services/http.ts

+2-4
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,9 @@ export class HttpService {
5555
async handleError(error: HttpErrorResponse) {
5656
if (error.status === 401 && User.logined) {
5757
const msg = await this._i18n.t('LoginExpireMsg');
58-
const isConfirm = confirm(msg);
59-
if (isConfirm) {
60-
return window.open('/core/auth/login/?next=/luna/', '_blank');
58+
if (confirm(msg)) {
59+
window.open('/core/auth/login/?next=/luna/', '_blank');
6160
}
62-
window.location.reload();
6361
} else if (error.status === 403) {
6462
const msg = await this._i18n.t('No permission');
6563
alert(msg);

0 commit comments

Comments
 (0)