From 8fa14f15d89c02cee30c98acbb35c733f2a13cf2 Mon Sep 17 00:00:00 2001
From: 张含笑 <zhx18749296735@163.com>
Date: Thu, 17 Apr 2025 17:52:19 +0800
Subject: [PATCH] feat: 调整机巢列表
---
src/hooks/useSingleDroneMap/useSingleDroneMap.js | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/src/hooks/useSingleDroneMap/useSingleDroneMap.js b/src/hooks/useSingleDroneMap/useSingleDroneMap.js
index 712f439..ff7f0c3 100644
--- a/src/hooks/useSingleDroneMap/useSingleDroneMap.js
+++ b/src/hooks/useSingleDroneMap/useSingleDroneMap.js
@@ -2,7 +2,7 @@
* @Author: shuishen 1109946754@qq.com
* @Date: 2025-04-15 22:41:40
* @LastEditors: shuishen 1109946754@qq.com
- * @LastEditTime: 2025-04-16 19:33:52
+ * @LastEditTime: 2025-04-17 15:05:32
* @FilePath: \command-center-dashboard\src\hooks\useSingleDroneMap\useSingleDroneMap.js
* @Description:
*
@@ -75,7 +75,7 @@
properties: {
customData: {
data: {
- type: 'single-drone-event'
+ type: 'single-drone-position'
}
}
}
@@ -168,13 +168,9 @@
let clickedEntities = viewer?.scene.drillPick(click.position).map(item => item.id)
- console.log(clickedEntities, 1111111)
-
if (!clickedEntities?.length) return
currentEntity = findEntityByType(clickedEntities, 'single-drone-event')
-
- console.log(currentEntity, 1111111)
removeLabel()
@@ -216,8 +212,6 @@
if (!currentEntity) return
let dom = document.querySelector('#mapPopUpBox')
- console.log(currentEntity.properties.customData, 4444)
-
if (!dom) {
dom = getLabelDom(currentEntity.properties.customData._value.data)
}
@@ -255,6 +249,12 @@
removeLabel()
}
+ onMounted(() => {
+ nextTick(() => {
+ init()
+ })
+ })
+
// 自动清理
onUnmounted(() => {
removeAll()
--
Gitblit v1.9.3