This commit is contained in:
Taric Xin
2021-12-07 19:39:28 +08:00
parent 647b288042
commit b5262f5a26
32 changed files with 1752 additions and 18 deletions

View File

@ -25,7 +25,7 @@ export class EAUserService extends BaseService {
/**
* 账号密码登录
*/
$api_login_by_account = `/cuc/user/login?_allow_anonymous=true`;
$api_login_by_account = `/api/mdc/cuc/user/login?_allow_anonymous=true`;
/**
* 手机号登录
*/
@ -117,14 +117,15 @@ export class EAUserService extends BaseService {
if (res?.token) {
this.tokenSrv.set({ token: res.token });
this.doAfterLogin();
this.router.navigate([this.ar.snapshot.queryParams.returnUrl || '/']);
// this.eventSrv.event.emit(eventConf.reflesh_login_status, this.ar.snapshot.queryParams.returnUrl || '/');
}
});
}
async doAfterLogin() {
await this.loadUserInfo();
await this.loadUserMenus();
// await this.loadUserInfo();
// await this.loadUserMenus();
await this.loadUserRoles();
}