From 05b0f6104cc5e1ac06c8d1f553bbc3e32f6e6521 Mon Sep 17 00:00:00 2001
From: shuishen <1109946754@qq.com>
Date: Fri, 01 Nov 2024 10:43:02 +0800
Subject: [PATCH] 布局容器样式调整

---
 src/hooks/initMap.js |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/hooks/initMap.js b/src/hooks/initMap.js
index dce2117..fbcc970 100644
--- a/src/hooks/initMap.js
+++ b/src/hooks/initMap.js
@@ -2,7 +2,7 @@
  * @Author: shuishen 1109946754@qq.com
  * @Date: 2024-10-25 15:09:55
  * @LastEditors: shuishen 1109946754@qq.com
- * @LastEditTime: 2024-10-28 19:42:36
+ * @LastEditTime: 2024-10-31 18:27:53
  * @FilePath: \bigScreen\src\hooks\initMap.js
  * @Description: 
  * 
@@ -10,11 +10,11 @@
  */
 let viewer = null
 const { VITE_APP_BASE } = import.meta.env
-
 import { useMap } from 'store/map'
 import { nextTick } from 'vue'
 
 export function readyViewer () {
+  const Cesium = DC.getLib('Cesium')
   const { appContext } = getCurrentInstance()
   const store = useMap()
 
@@ -23,7 +23,7 @@
 
     nextTick(() => {
       DC.ready({
-        baseUrl: `${VITE_APP_BASE}/libs/dc-sdk/resources/`
+        baseUrl: `${VITE_APP_BASE}libs/dc-sdk/resources/`
       }).then(() => {
 
         viewer = new DC.Viewer('viewer-container')

--
Gitblit v1.9.3