From 05affc703e81728cc58cc89c1815407ad4997dfe Mon Sep 17 00:00:00 2001
From: linwe <872216996@qq.com>
Date: Thu, 07 Nov 2024 20:15:08 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/main'

---
 src/views/sub/components/scomponents/tool/location.vue |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)

diff --git a/src/views/sub/components/scomponents/tool/location.vue b/src/views/sub/components/scomponents/tool/location.vue
index 6642fd8..a531121 100644
--- a/src/views/sub/components/scomponents/tool/location.vue
+++ b/src/views/sub/components/scomponents/tool/location.vue
@@ -46,11 +46,8 @@
 const latitude = ref(0)
 const height = ref(0)
 
-import { getViewer } from 'utils/getViewer'
-const globalViewer = getViewer()
-
 const flyTo = () => {
-  globalViewer.flyToPosition(new DC.Position(longitude.value, latitude.value, height.value, 0, -90, 0), () => { }, 3)
+  window.$viewer.flyToPosition(new DC.Position(longitude.value, latitude.value, height.value, 0, -90, 0), () => { }, 3)
 }
 </script>
 

--
Gitblit v1.9.3