From a0d006a8e6734ce1ff08fc5d196266cc2fd27f7d Mon Sep 17 00:00:00 2001
From: husq <931347610@qq.com>
Date: Sun, 08 Oct 2023 17:33:44 +0800
Subject: [PATCH] Merge branch 'demo' of http://s16s652780.51mypc.cn:49896/r/yskj/iot_drone_web into demo
---
src/hooks/use-cesium-tsa.ts | 7 +++----
1 files changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/hooks/use-cesium-tsa.ts b/src/hooks/use-cesium-tsa.ts
index 4ed342b..c802aa8 100644
--- a/src/hooks/use-cesium-tsa.ts
+++ b/src/hooks/use-cesium-tsa.ts
@@ -34,7 +34,6 @@
let handler: Cesium.ScreenSpaceEventHandler
const dimension = ref(3)
const _init = () => {
- if (viewer) return
// Cesium Token
const cesiumToken = import.meta.env.VITE_CESIUM_TOKEN
Cesium.Ion.defaultAccessToken = cesiumToken
@@ -169,9 +168,9 @@
})
// 销毁地图模型
- onUnmounted(() => {
- viewer = null
- })
+ // onUnmounted(() => {
+ // // viewer = null
+ // })
return {
addPoint,
removeAllPoint,
--
Gitblit v1.9.3