We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 664bff8 commit 641c631Copy full SHA for 641c631
src/app/services/http.ts
@@ -55,11 +55,9 @@ export class HttpService {
55
async handleError(error: HttpErrorResponse) {
56
if (error.status === 401 && User.logined) {
57
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');
+ if (confirm(msg)) {
+ window.open('/core/auth/login/?next=/luna/', '_blank');
61
}
62
- window.location.reload();
63
} else if (error.status === 403) {
64
const msg = await this._i18n.t('No permission');
65
alert(msg);
0 commit comments