优化地图功能的开关

This commit is contained in:
648540858
2022-05-06 16:01:36 +08:00
parent ee62f17170
commit afe2450a14
3 changed files with 21 additions and 21 deletions

View File

@@ -59,7 +59,7 @@ export default {
},
data() {
return {
onOff: typeof window.mapParam !== "undefined",
onOff: typeof window.mapParam !== "undefined" && window.mapParam.enable,
deviceService: new DeviceService(),
layer: null,
lineLayer: null,