定义部分全局变量

This commit is contained in:
hym 2025-11-21 23:00:53 +08:00
parent e2e3dd6952
commit ac105fd0c5
1 changed files with 6 additions and 0 deletions

View File

@ -31,3 +31,9 @@ new Vue({
components: { App }, components: { App },
template: '<App/>' template: '<App/>'
}) })
// 定义部分全局变量
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"];