This commit is contained in:
2023-11-02 15:53:37 +07:00
parent 136c9a2f6d
commit 21af45bfa6
15 changed files with 108 additions and 233 deletions

View File

@@ -44,7 +44,8 @@ export class LoginComponent implements OnInit {
if (!form.valid) return false;
try {
const result = await lastValueFrom(this.authService.login(this.dataForm));
// const cathayResult = await lastValueFrom(this.cathayAuthService.login(this.cathayForm))
const cathayResult: any = await lastValueFrom(this.cathayAuthService.login(this.cathayForm));
this.appService.setToken(cathayResult.token.token)
this.appService.setAuth(result);
return this.router.navigate(['/pages']);
} catch (err) {