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