From a93db081dc909dbb7d6025f5a08c3314bd545e8f Mon Sep 17 00:00:00 2001 From: liaoboping <344114999@qq.com> Date: Tue, 26 Aug 2025 17:32:02 +0800 Subject: [PATCH] =?UTF-8?q?map=E6=9C=8D=E5=8A=A1=EF=BC=8C=E7=B3=BB?= =?UTF-8?q?=E7=BB=9F=E6=8E=A7=E5=88=B6=E5=AD=90=E7=B3=BB=E7=BB=9F=E6=83=B3?= =?UTF-8?q?=E5=AE=9A=E4=BF=A1=E6=81=AF=E5=B1=95=E7=A4=BA=EF=BC=8C=E5=9B=BE?= =?UTF-8?q?=E5=BD=A2=E6=95=B0=E6=8D=AE=E5=BA=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/config.js | 8 +- src/components/Common/Cesium/index.js | 4 +- src/components/Common/Form/DurationPicker.vue | 2 +- .../simulationScene/centralControl/index.vue | 238 +++++++++++++----- src/views/simulationScene/database/txsjk.vue | 85 ++++++- vue.config.js | 8 + 6 files changed, 278 insertions(+), 67 deletions(-) diff --git a/public/config.js b/public/config.js index 61af36b..e1d21dd 100644 --- a/public/config.js +++ b/public/config.js @@ -1,5 +1,5 @@ window._CONFIG = { - ImageryProviderUrl: "http://localhost:8090/mapWX/{z}/{x}/{y}.jpg", - RoadProviderUrl: "", - TerrainProviderUrl: "http://localhost:8090/mapDem/", -}; + ImageryProviderUrl: '/map/mapWX/{z}/{x}/{y}.jpg', + RoadProviderUrl: '', + TerrainProviderUrl: '/map/mapDem/', +} diff --git a/src/components/Common/Cesium/index.js b/src/components/Common/Cesium/index.js index f0a5277..0ac2d44 100644 --- a/src/components/Common/Cesium/index.js +++ b/src/components/Common/Cesium/index.js @@ -3,9 +3,9 @@ import CesiumNavigation from 'cesium-navigation-es6' import 'cesium/Build/Cesium/Widgets/widgets.css' export default class MyCesium { - static ImageryProviderUrl = 'http://localhost:8090/mapWX/{z}/{x}/{y}.jpg' + static ImageryProviderUrl = '/map/mapWX/{z}/{x}/{y}.jpg' static RoadProviderUrl = '' - static TerrainProviderUrl = 'http://localhost:8090/mapDem/' + static TerrainProviderUrl = '/map/mapDem/' static center = [116.39742, 39.90906, 2000000] static ENTITY_TYPES = { WARZONE: 1, diff --git a/src/components/Common/Form/DurationPicker.vue b/src/components/Common/Form/DurationPicker.vue index df56fc5..fa56afa 100644 --- a/src/components/Common/Form/DurationPicker.vue +++ b/src/components/Common/Form/DurationPicker.vue @@ -22,7 +22,7 @@ diff --git a/vue.config.js b/vue.config.js index 3d6c546..7f5df01 100644 --- a/vue.config.js +++ b/vue.config.js @@ -118,6 +118,14 @@ const vueConfig = { '^/api': '', }, }, + '/map': { + target: 'http://localhost:8090/', + ws: false, + changeOrigin: true, + pathRewrite: { + '^/map': '', + }, + }, }, }, publicPath: '/',