edit
This commit is contained in:
@ -152,16 +152,16 @@ export class EAUserService extends BaseService {
|
|||||||
* 加载用户菜单
|
* 加载用户菜单
|
||||||
*/
|
*/
|
||||||
async loadUserMenus() {
|
async loadUserMenus() {
|
||||||
// return this.asyncRequest(this.$api_get_user_menus, {
|
return this.asyncRequest(this.$api_get_user_menus, {
|
||||||
// appId: this.envSrv.getEnvironment().appId
|
appId: this.envSrv.getEnvironment().appId
|
||||||
// }).then(res => {
|
}).then(res => {
|
||||||
// this.cacheSrv.set(cacheConf.menu, res);
|
this.cacheSrv.set(cacheConf.menu, res);
|
||||||
// this.menuService.add(res);
|
this.menuService.add(res);
|
||||||
// });
|
|
||||||
this.request('assets/mocks/menu-data.json', {}, 'GET').subscribe((res: any) => {
|
|
||||||
this.cacheSrv.set(cacheConf.menu, res.menu);
|
|
||||||
this.menuService.add(res.menu);
|
|
||||||
});
|
});
|
||||||
|
// this.request('assets/mocks/menu-data.json', {}, 'GET').subscribe((res: any) => {
|
||||||
|
// this.cacheSrv.set(cacheConf.menu, res.menu);
|
||||||
|
// this.menuService.add(res.menu);
|
||||||
|
// });
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user