frontend login message

This commit is contained in:
MaxKey
2022-07-05 15:52:43 +08:00
parent 71d53daa90
commit 81d6bc3198
2 changed files with 2 additions and 3 deletions

View File

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

View File

@@ -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 {
// 清空路由复用信息