|
|
|
@ -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; |
|
|
|
|