From 1fd94033300c712a6faeac1b8a7d3fa3fd4e3553 Mon Sep 17 00:00:00 2001
From: liuyg <liuyg@qq.com>
Date: Sat, 19 Mar 2022 16:24:48 +0800
Subject: [PATCH] +解决标签不显示问题,加入判断右侧添加标签失败提示

---
 src/store/modules/popupParams.js |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/src/store/modules/popupParams.js b/src/store/modules/popupParams.js
index c01f5ec..04b91f7 100644
--- a/src/store/modules/popupParams.js
+++ b/src/store/modules/popupParams.js
@@ -1,7 +1,7 @@
 import leftNavsData from './pc/leftNavsData'
 window.labelLayer = null;
 window.divIcon = null;
-
+window.divIcononces = null;
 
 const popupParams = {
     state: {
@@ -250,7 +250,7 @@
                 return
             }
             for (const i in list) {
-                const divIcon = new global.DC.DivIcon(
+                window.divIcononces = new global.DC.DivIcon(
                     new global.DC.Position(
                         Number(list[i].jd),
                         Number(list[i].wd),
@@ -268,7 +268,7 @@
                           `
                 )
                 // 订阅事件
-                window.divIcon.on(global.DC.MouseEventType.CLICK, (e) => {
+                window.divIcononces.on(global.DC.MouseEventType.CLICK, (e) => {
                     // console.log(e);
                     // return;
                     // 定制化窗体
@@ -308,7 +308,7 @@
                         data: list[i]
                     })
                 })
-                window.labelLayer.addOverlay(window.divIcon)
+                window.labelLayer.addOverlay(window.divIcononces)
             }
         },
         addLabelLayerIconMobelUse({

--
Gitblit v1.9.3