This commit is contained in:
Taric Xin
2022-03-23 09:40:29 +08:00
parent 131a8caceb
commit c9e8779418
2 changed files with 11 additions and 5 deletions

View File

@ -130,7 +130,7 @@ export class EAUserService extends BaseService {
async doAfterLogin() {
await this.loadUserInfo();
await this.loadUserMenus();
await this.loadUserRoles();
this.loadApp();
}
/**
@ -165,9 +165,15 @@ export class EAUserService extends BaseService {
}
/**
* 加载用户角色
* 加载系统信息
*/
loadUserRoles() {}
loadApp() {
this.http.get(`assets/mocks/app-data.json`).subscribe(res => {
if (res.app) {
this.settings.setApp(res.app);
}
});
}
/**
* 登出