|
|
@ -26,7 +26,9 @@ export class init3DGuard implements CanActivate { |
|
|
|
if (userdata.userName == 'superadmin' || res.hasBuildingInfo) { |
|
|
|
if (userdata.userName == 'superadmin' || res.hasBuildingInfo) { |
|
|
|
return true |
|
|
|
return true |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
// this.message.info("当前油站未开通!");
|
|
|
|
if(this.router.url != '/plan'){ |
|
|
|
|
|
|
|
this.message.info("当前油站未开通!"); |
|
|
|
|
|
|
|
} |
|
|
|
return false |
|
|
|
return false |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|