瀏覽代碼

修改ip为192.168.5.22

Rgx 2 月之前
父節點
當前提交
eb81d3d987

+ 1 - 1
src/main.js

@@ -17,7 +17,7 @@ import widget from 'cesium/Widgets/widgets.css'
 import axios from 'axios'
 
 // 配置axios默认值
-axios.defaults.baseURL = 'http://localhost:5100'
+axios.defaults.baseURL = 'http://192.168.5.22:5200'
 axios.defaults.timeout = 5000
 axios.defaults.headers.common['Access-Control-Allow-Origin'] = '*'
 axios.defaults.headers.common['Access-Control-Allow-Methods'] = 'GET,PUT,POST,DELETE,PATCH,OPTIONS'

+ 1 - 1
src/views/login/index.vue

@@ -73,7 +73,7 @@ export default {
     handleCurrentChange(val) {
       this.$store.commit("app/setPlatformID", val.platformID);
       this.$store.commit("app/setInit", 73);
-      axios.get(`http://localhost:5100/api/platform/${val.platformID}/radar-status`)
+      axios.get(`http://192.168.5.22:5200/api/platform/${val.platformID}/radar-status`)
       .then(response => {
         console.log('雷达状态:', response.data);
         this.$store.commit("app/SET_RADAR_STATUS", response.data);

+ 4 - 4
src/views/networkManagement/index.vue

@@ -431,7 +431,7 @@ export default {
     },
     timerRefresh() {
       //this.echartsInit();
-      axios.get(`http://localhost:5100/api/platform/${this.platformID}/getMsgStatus`)
+      axios.get(`http://192.168.5.22:5200/api/platform/${this.platformID}/getMsgStatus`)
         .then(response => {
           this.VUParams[1].value = response.data.startUp
           this.VUParams[2].value = response.data.quite
@@ -439,7 +439,7 @@ export default {
         })
         .catch(error => {
         });
-      axios.get(`http://localhost:5100/api/platform/${this.platformID}/getMsgList`)
+      axios.get(`http://192.168.5.22:5200/api/platform/${this.platformID}/getMsgList`)
         .then(response => {
 
           this.inbox = response.data
@@ -448,7 +448,7 @@ export default {
         })
         .catch(error => {
         });
-      axios.get(`http://localhost:5100/api/platform/${this.platformID}/getOutMsgList`)
+      axios.get(`http://192.168.5.22:5200/api/platform/${this.platformID}/getOutMsgList`)
         .then(response => {
 
           this.outbox = response.data
@@ -457,7 +457,7 @@ export default {
         })
         .catch(error => {
         });
-        axios.get(`http://localhost:5100/api/platform/${this.platformID}/getTeamMemberByID`)
+        axios.get(`http://192.168.5.22:5200/api/platform/${this.platformID}/getTeamMemberByID`)
         .then(response => {
           let temp = []
           this.nodes = []

+ 1 - 1
src/views/scoutManagement/esm.vue

@@ -372,7 +372,7 @@ export default {
     },
     timerRefresh() {
       // this.echartsRefresh();
-      axios.get(`http://localhost:5100/api/platform/${this.platformID}/getECMParamsByID`)
+      axios.get(`http://192.168.5.22:5200/api/platform/${this.platformID}/getECMParamsByID`)
         .then(response => {
           this.esmData = response.data
         })

+ 1 - 1
src/views/scoutManagement/radar.vue

@@ -401,7 +401,7 @@ export default {
           this.$store.commit("app/SET_RADAR_STATUS", defaultStatus);
         }
       }
-      axios.get(`http://localhost:5100/api/platform/${this.platformID}/getSdrStatusByID`)
+      axios.get(`http://192.168.5.22:5200/api/platform/${this.platformID}/getSdrStatusByID`)
               .then(response => {
                 console.log(response.data)
                 console.log(this.sdrStatus)

+ 2 - 2
src/views/situation/index.vue

@@ -399,7 +399,7 @@ export default {
         navigationHelpButton: false,
         selectionIndicator: false,
         imageryProvider: new this.Cesium.WebMapServiceImageryProvider({
-          url: "http://localhost:8080/geoserver/map/wms",
+          url: "http://192.168.5.22:8080/geoserver/map/wms",
           layers: 'map:map',
           proxy: new this.Cesium.DefaultProxy('/proxy/'),
           parameters: {
@@ -409,7 +409,7 @@ export default {
           }
         }),
         // imageryProvider: new this.Cesium.TileMapServiceImageryProvider({
-        //   url: "http://localhost:8080/geoserver/map/",
+        //   url: "http://192.168.5.22:8080/geoserver/map/",
         //   minimumLevel: 0,
         //   maximumLevel: 20,
         //   fileExtension: "jpg",

+ 1 - 1
vue.config.js

@@ -68,7 +68,7 @@ module.exports = {
         }
       },
       '/api': {
-        target: 'http://localhost:8080',
+        target: 'http://192.168.5.22:8080',
         changeOrigin: true,
         pathRewrite: {
           '^/api': '/api'