Explorar el Código

webstrom-互联网环境修改

zhiyuan-007 hace 1 semana
padre
commit
a3e01328f3
Se han modificado 3 ficheros con 11 adiciones y 11 borrados
  1. 2 2
      .env.production
  2. 8 8
      src/components/mapJK.vue
  3. 1 1
      vite.config.js

+ 2 - 2
.env.production

@@ -4,7 +4,7 @@ VITE_BASE_URL='http://172.16.8.44:8250/low-altitude/'
 VITE_ZW_API='https://cimweb.zjw.sh.cegn.cn:2008/'
 VITE_ZW_URL='https://cimweb.zjw.sh.cegn.cn:2008/'
 
-VITE_NET_API='http://192.168.2.137:9251/low-altitude/'
-VITE_NET_URL='http://192.168.2.137:9251/low-altitude/'
+VITE_NET_API='http://116.236.218.30:9251/low-altitude/'
+VITE_NET_URL='http://116.236.218.30:9251/low-altitude/'
 
 BASE_PATHS = '/map-tool-widget/'

+ 8 - 8
src/components/mapJK.vue

@@ -1869,7 +1869,7 @@ export default {
         // });
         getRealFlyPoint({
           status: params.status,
-          url:"ws://192.168.2.137:9251/low-altitude/flight/data/scene/websocket",
+          url:"ws://116.236.218.30:9251/low-altitude/flight/data/scene/websocket",
           data:{
             "messageCode": "SgsNear"
           }
@@ -1897,7 +1897,7 @@ export default {
         // });
         getRealFlyPoint({
           status: params.status,
-          url:"ws://192.168.2.137:9251/low-altitude/flight/data/scene/websocket",
+          url:"ws://116.236.218.30:9251/low-altitude/flight/data/scene/websocket",
           data:{
             "messageCode": "SgsElectricity"
           }
@@ -1925,7 +1925,7 @@ export default {
         }
         getRealFlyPoint({
           status: params.status,
-          url:"ws://192.168.2.137:9251/low-altitude/flight/data/scene/websocket",
+          url:"ws://116.236.218.30:9251/low-altitude/flight/data/scene/websocket",
           data:{
             "messageCode": "SgsYaw"
           }
@@ -1957,7 +1957,7 @@ export default {
         }
         getRealFlyPoint({
           status: params.status,
-          url:"ws://192.168.2.137:9251/low-altitude/flight/data/scene/websocket",
+          url:"ws://116.236.218.30:9251/low-altitude/flight/data/scene/websocket",
           data:{
             "messageCode": "SgsBreakInto"
           }
@@ -2040,7 +2040,7 @@ export default {
             if(virtualSocket){
               virtualSocket.send(JSON.stringify(params.flyList));
             }else{
-              virtualSocket = new WebSocket('ws://192.168.2.137:9251/low-altitude/simulate/getRouteInfoWebSocket');
+              virtualSocket = new WebSocket('ws://116.236.218.30:9251/low-altitude/simulate/getRouteInfoWebSocket');
               virtualSocket.onopen = () => {
                 console.log('WebSocket 连接成功');
                 virtualSocket.send(JSON.stringify(params.flyList));
@@ -2429,7 +2429,7 @@ export default {
             "pipeRadius": 5
           });
           getRealFlyPoint({
-            url:"ws://192.168.2.137:9251/low-altitude/flight/data/websocket",
+            url:"ws://116.236.218.30:9251/low-altitude/flight/data/websocket",
             flyList:{
               "path": res.data.data.pathAll,
               "avoidanceType":"avoid",
@@ -2446,7 +2446,7 @@ export default {
       //ws 推送方法
       function getRealPower(params){
         const connectWebSocket = () => {
-          socket = new WebSocket('ws://192.168.2.137:9251/low-altitude/gridSearchWebSocket');
+          socket = new WebSocket('ws://116.236.218.30:9251/low-altitude/gridSearchWebSocket');
           socket.onopen = () => {
             console.log('WebSocket 连接成功');
             socket.send(JSON.stringify({
@@ -2792,7 +2792,7 @@ export default {
         //先加载所有的无人机和航线
         getRealFlyPoint({
           status: params.status,
-          url:"ws://192.168.2.137:9251/low-altitude/flight/data/websocket",
+          url:"ws://116.236.218.30:9251/low-altitude/flight/data/websocket",
           data:{
             "flightIdS": ["0029C9E272694224818F1CEF8F2F084F","0029C9E272694224818F1CEF8F2F084D","0029C9E272694224818F1CEF8F2F084U","0029C9E272694224818F1CEF8F2F084O","0029C9E272694224818F1CEF8F2F084T"],
             "messageCode": 1,

+ 1 - 1
vite.config.js

@@ -39,7 +39,7 @@ export default defineConfig({
       },
       '/netapi': {
         // 代理请求之后的请求地址(你的真实接口地址)
-        target: 'http://192.168.2.137:9251/low-altitude/',
+        target: 'http://116.236.218.30:9251/low-altitude/',
         //target: 'http://10.1.161.53:8095/',
         //target: 'http://localhost:9250/',
         secure: false,