mirror of
https://gitee.com/dromara/MaxKey.git
synced 2026-05-14 12:32:09 +08:00
frontend login message
This commit is contained in:
@@ -261,7 +261,7 @@ export class UserLoginComponent implements OnInit, OnDestroy {
|
||||
.subscribe(res => {
|
||||
this.loading = true;
|
||||
if (res.code !== 0) {
|
||||
this.error = '登录失败,请重新登录'; //res.msg;
|
||||
this.error = res.msg;
|
||||
//this.msg.success(`登录失败,请重新登录!`);
|
||||
if (this.loginType === 'normal') {
|
||||
this.getImageCaptcha();
|
||||
|
||||
@@ -161,9 +161,8 @@ export class UserLoginComponent implements OnInit, OnDestroy {
|
||||
.subscribe(res => {
|
||||
this.loading = true;
|
||||
if (res.code !== 0) {
|
||||
this.error = '登录失败,请重新登录'; //res.msg;
|
||||
this.error = res.msg;
|
||||
//this.msg.success(`登录失败,请重新登录!`);
|
||||
|
||||
this.getImageCaptcha();
|
||||
} else {
|
||||
// 清空路由复用信息
|
||||
|
||||
Reference in New Issue
Block a user