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);