From 0320cd8e5794d8da4a47eba33fe2eb9cb4b35445 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Mon, 02 Dec 2024 17:57:50 +0800
Subject: [PATCH] 路由调整,代码严格处理

---
 src/views/companyInfo/components/box/unitContent.vue |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/views/companyInfo/components/box/unitContent.vue b/src/views/companyInfo/components/box/unitContent.vue
index e16eefa..11560e8 100644
--- a/src/views/companyInfo/components/box/unitContent.vue
+++ b/src/views/companyInfo/components/box/unitContent.vue
@@ -85,7 +85,7 @@
 
         divIcon.on(DC.MouseEventType.CLICK, incident)
 
-        addTileLayers[companyInfo.name].addOverlay(divIcon)
+        addTileLayers[companyInfo.name] && addTileLayers[companyInfo.name].addOverlay(divIcon)
       })
     })
   } else {

--
Gitblit v1.9.3