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: '/',