车辆接口更新
This commit is contained in:
@ -4,7 +4,7 @@
|
||||
* @Author : Shiming
|
||||
* @Date : 2022-01-25 16:03:45
|
||||
* @LastEditors : Shiming
|
||||
* @LastEditTime : 2022-01-25 19:12:23
|
||||
* @LastEditTime : 2022-01-26 18:04:46
|
||||
* @FilePath : \\tms-obc-web\\src\\app\\core\\guards\\auth.guard.ts
|
||||
* Copyright (C) 2022 huzhenhong. All rights reserved.
|
||||
*/
|
||||
@ -56,10 +56,17 @@ export class AuthGuard implements CanActivate, CanActivateChild {
|
||||
return this.baseService.request('/api/mdc/cuc/functionButton/getUserFunctionButton', { link: route }).pipe(
|
||||
switchMap(res => {
|
||||
if (res) {
|
||||
this.srv.setAbility(res.permissionsCodeList || []);
|
||||
this.menuService.resume();
|
||||
console.log('666')
|
||||
console.log(res)
|
||||
// this.srv.setAbility(res.abilities || []);
|
||||
// this.menuService.resume();
|
||||
this.baseService.request('/api/mdc/cuc/enterpriseProject/getUserDefaultEnterpriseProject').subscribe((res: any) => {
|
||||
if(!res.enterpriseIdentity){
|
||||
this.srv.setAbility(res.abilities || []);
|
||||
this.menuService.resume();
|
||||
}
|
||||
})
|
||||
}
|
||||
|
||||
return of(true);
|
||||
})
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user