From 238bd53ac7d18796724a86800e3df60dd93fada0 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Mon, 02 Dec 2024 17:01:24 +0800
Subject: [PATCH] 图层清空处理
---
src/views/companyInfo/components/box/unitContent.vue | 8 +++++++-
1 files changed, 7 insertions(+), 1 deletions(-)
diff --git a/src/views/companyInfo/components/box/unitContent.vue b/src/views/companyInfo/components/box/unitContent.vue
index eb0f6da..e16eefa 100644
--- a/src/views/companyInfo/components/box/unitContent.vue
+++ b/src/views/companyInfo/components/box/unitContent.vue
@@ -2,7 +2,7 @@
* @Author: shuishen 1109946754@qq.com
* @Date: 2023-03-10 15:27:59
* @LastEditors: shuishen 1109946754@qq.com
- * @LastEditTime: 2024-11-27 19:15:59
+ * @LastEditTime: 2024-11-28 19:29:15
* @FilePath: \bigScreen\src\views\companyInfo\components\box\unitContent.vue
* @Description:
*
@@ -103,6 +103,8 @@
let arr = Object.keys(addPupoLayers)
arr.filter(i => i != 'hgyq').forEach(i => {
addPupoLayers[i] && window.$viewer && window.$viewer.removeLayer(addPupoLayers[i])
+ addPupoLayers[i] = null
+ delete addPupoLayers[i]
})
addPupoLayers = {}
}
@@ -114,8 +116,12 @@
let arr = Object.keys(addTileLayers)
arr.forEach(i => {
addTileLayers[i] && window.$viewer && window.$viewer.removeLayer(addTileLayers[i])
+ addTileLayers[i] = null
+ delete addTileLayers[i]
})
destroy()
+ addTileLayers = null
+ addPupoLayers = null
EventBus.emit('restHandleDelChange', `3-3-2`)
EventBus.emit('restHandleDelChange', `3-3-4`)
})
--
Gitblit v1.9.3