{
this.msgs = [{
severity: ‘error’,
summary: ‘提示’,
detail: “亲,您的用户名或密码不对!”
}]
return;
}
}
).catch(this.handleError)
}
}
DiaMessage: “”;
showDialog(string) {
this.DiaMessage = string;
this.display = true;
}
public handleError(error: any): Promise {
this.showDialog(‘亲,抱歉登录失败奥’);
console.error(‘An error occurred’, error);
return Promise.reject(error.message || error);
}
confirm() {
this.confirmationService.confirm({
message: ‘用户已在线,如果您继续登陆,将强制其他用户下线’,
header: ‘温馨提示’,
icon: ‘fa fa-question-circle’,
accept: () => {
//退出跳转到登录页
const quitURL = ‘auth-web/access/logout/’ + this.user.userCode;
this.http.get(quitURL).subscribe(
res &#