From cdc5d53cb0f338685bf9e5d4d78b02d6c8867d9b Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Sat, 09 Nov 2024 15:55:49 +0800
Subject: [PATCH] turf引入 图片静态资源引入 增加污染物处理菜单 风险源、企业分布上图样式调整 企业详情初始化定位调整

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

diff --git a/src/views/layout/components/scomponents/tool/location.vue b/src/views/layout/components/scomponents/tool/location.vue
index 6642fd8..a531121 100644
--- a/src/views/layout/components/scomponents/tool/location.vue
+++ b/src/views/layout/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