From 48bc5ec76be628ed581d3201150bddaeaadeed3e Mon Sep 17 00:00:00 2001
From: chenyao <1219716595@qq.com>
Date: Sat, 29 Mar 2025 14:14:06 +0800
Subject: [PATCH] feat:增加机巢数据和巡检详情
---
src/utils/cesium-tsa.js | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/src/utils/cesium-tsa.js b/src/utils/cesium-tsa.js
index 60cd4ba..cad09ed 100644
--- a/src/utils/cesium-tsa.js
+++ b/src/utils/cesium-tsa.js
@@ -3,7 +3,12 @@
import store from '@/store';
import { Terrain } from 'cesium';
-window.CESIUM_BASE_URL = '/cesiumPu';
+
+// vite env
+const { VITE_APP_BASE } = import.meta.env;
+
+
+window.CESIUM_BASE_URL = `${VITE_APP_BASE}cesiumPu`;
// 定义全局的viewer变量防止重复生成
let viewer = null;
let globalBaseMapLayers = [];
--
Gitblit v1.9.3