From 641c6312d3bf84fd335faea96993600f69d54d04 Mon Sep 17 00:00:00 2001 From: Bryan Date: Wed, 19 Feb 2025 18:35:47 +0800 Subject: [PATCH] Revert "Fixed: KOKO component still accepts input when encountering 401 error" This reverts commit 8b128921e4c3bae684c8f58c7c7dd039e40af26e. --- src/app/services/http.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/app/services/http.ts b/src/app/services/http.ts index 7c783a31..ba4954c1 100644 --- a/src/app/services/http.ts +++ b/src/app/services/http.ts @@ -55,11 +55,9 @@ export class HttpService { async handleError(error: HttpErrorResponse) { if (error.status === 401 && User.logined) { const msg = await this._i18n.t('LoginExpireMsg'); - const isConfirm = confirm(msg); - if (isConfirm) { - return window.open('/core/auth/login/?next=/luna/', '_blank'); + if (confirm(msg)) { + window.open('/core/auth/login/?next=/luna/', '_blank'); } - window.location.reload(); } else if (error.status === 403) { const msg = await this._i18n.t('No permission'); alert(msg);