From 4dc152552062f8aa83ca5cd761554ff8f7012a2d Mon Sep 17 00:00:00 2001 From: guoyue Date: Fri, 23 Sep 2022 11:15:14 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E5=9F=BA=E7=A1=80=E8=AE=BE?= =?UTF-8?q?=E6=96=BD-=E5=9C=B0=E5=9B=BE=E6=90=9C=E7=B4=A2=20=20=E6=94=B9?= =?UTF-8?q?=E5=9B=9E=E6=9C=80=E5=88=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- front/src/supermap/advance-init.js | 2 +- front/src/supermap/map-init.js | 3 +-- front/src/views/home/videoSurveillance/index.vue | 2 +- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/front/src/supermap/advance-init.js b/front/src/supermap/advance-init.js index f0841cf8..0be17a7a 100644 --- a/front/src/supermap/advance-init.js +++ b/front/src/supermap/advance-init.js @@ -60,7 +60,7 @@ export function MapFun(mapObj) { /** * 定义地物编辑服务 */ - const featureService = L.supermap && L.supermap.featureService && L.supermap.featureService( + const featureService = L.supermap.featureService( _mapConfig.config.EDITORDATA_URL ) diff --git a/front/src/supermap/map-init.js b/front/src/supermap/map-init.js index 63006203..fc90354b 100644 --- a/front/src/supermap/map-init.js +++ b/front/src/supermap/map-init.js @@ -123,8 +123,7 @@ export function HieimpMap() { // debugger; // 获取图层信息 - L.supermap && L.supermap - .layerInfoService && L.supermap + L.supermap .layerInfoService(_mapConfig.config.QUERY_URL) .getLayersInfo(function (result) { // doSomething diff --git a/front/src/views/home/videoSurveillance/index.vue b/front/src/views/home/videoSurveillance/index.vue index 68f87286..117f7bbf 100644 --- a/front/src/views/home/videoSurveillance/index.vue +++ b/front/src/views/home/videoSurveillance/index.vue @@ -252,7 +252,7 @@ // 初始化地址匹配服务 initAddressMatchService() { this.L = window.L || {} - this.addressMatchService = L.supermap && L.supermap.addressMatchService && L.supermap.addressMatchService( + this.addressMatchService = L.supermap.addressMatchService( this.addressMatchUrl ) },