|
@@ -298,13 +298,12 @@ export class UserLoginComponent implements OnInit, OnDestroy {
|
|
|
})
|
|
})
|
|
|
.pipe(
|
|
.pipe(
|
|
|
finalize(() => {
|
|
finalize(() => {
|
|
|
- this.loading = false;
|
|
|
|
|
this.cdr.detectChanges();
|
|
this.cdr.detectChanges();
|
|
|
})
|
|
})
|
|
|
)
|
|
)
|
|
|
.subscribe(res => {
|
|
.subscribe(res => {
|
|
|
- this.loading = true;
|
|
|
|
|
if (res.code !== 0) {
|
|
if (res.code !== 0) {
|
|
|
|
|
+ this.loading = false;
|
|
|
this.error = res.message;
|
|
this.error = res.message;
|
|
|
//this.msg.error(this.error);
|
|
//this.msg.error(this.error);
|
|
|
if (this.loginType === 'normal') {
|
|
if (this.loginType === 'normal') {
|