Browse Source

油站高亮以及登录判断

beijing
陈鹏飞 3 years ago
parent
commit
3be334d8b9
  1. 2
      src/app/pages/init3D.guard.ts

2
src/app/pages/init3D.guard.ts

@ -16,7 +16,7 @@ export class init3DGuard implements CanActivate {
// 路由守卫
canActivate(next: ActivatedRouteSnapshot, state: RouterStateSnapshot,): Promise<boolean> {
return this.getGasStationBaseInfo().then((res: any) => {
// sessionStorage.setItem("3dSceneData", JSON.stringify(res))
sessionStorage.setItem("3dSceneData", JSON.stringify(res))
let userdata = JSON.parse(sessionStorage.getItem('userdata'))
if (userdata.userName == 'superadmin') { //是superadmin,是内部制作账号
ModeManager.s_isMakeMode = true;

Loading…
Cancel
Save