edit
This commit is contained in:
		| @ -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(); | ||||
|   } | ||||
|  | ||||
|  | ||||
		Reference in New Issue
	
	Block a user