Skip to content

Commit

Permalink
Revert "Fixed: KOKO component still accepts input when encountering 4…
Browse files Browse the repository at this point in the history
…01 error"

This reverts commit 8b12892.
  • Loading branch information
BaiJiangJie committed Feb 19, 2025
1 parent 664bff8 commit 9139c27
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/app/services/http.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 9139c27

Please sign in to comment.