From ac105fd0c58527e8ffe02e01fa829e76cf035be8 Mon Sep 17 00:00:00 2001 From: hym Date: Fri, 21 Nov 2025 23:00:53 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9A=E4=B9=89=E9=83=A8=E5=88=86=E5=85=A8?= =?UTF-8?q?=E5=B1=80=E5=8F=98=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main.js b/src/main.js index c3ae942..69b32de 100644 --- a/src/main.js +++ b/src/main.js @@ -31,3 +31,9 @@ new Vue({ components: { App }, template: '' }) + +// 定义部分全局变量 +Vue.config.maps = {}; +Vue.config.baseUrl = process.env.NODE_ENV === 'development' ? 'http://124.222.8.13:9801' : `${window.location.protocol}//${window.location.hostname}:${window.location.port}` +Vue.config.wwwrootBaseUrl = "_content/IDSSE.OceanExplorer.Shared"; +Vue.config.sprites = ["go.png", "ship.png", "ship1.png", "ship2.png", "ship3.png", "fdz.png", "shys.png", "auv.png", "aircraft.png", "aircraft-r.png", "arrow.png", "dot.png", "dot_red.png", "default.png", "info-dark.png", "warning-dark.png", "warning-red.png", "slow_sog.png", "stop_sog.png", "海底主基站.png", "石油平台.png", "岸基站.png", "circle-red.png", "circle-green.png", "circle-blue.png", "circle-yellow.png", "circle-purple.png", "circle-black.png", "circle-white.png"]; \ No newline at end of file