Przeglądaj źródła

外网开发环境配置

zhou.xiaoning 4 lat temu
rodzic
commit
d77679e084

+ 1 - 1
public/config/app.config.json

@@ -1,3 +1,3 @@
 {
-    "apiUrl": "http://192.168.31.118:8080/cfg?key=test_118"
+    "apiUrl": "http://218.17.158.45:22003/cfg?key=test_125"
 }

+ 0 - 7
src/router/index.ts

@@ -1168,12 +1168,6 @@ const routes: Array<RouteRecordRaw> = [
                 ]
             },
             {
-<<<<<<< HEAD
-              path: '/hedging/entry_of_spot_information',
-              name: '',
-              component: () => import('@/views/hedging/entry_of_spot_information/index.vue'),
-              
-=======
                 path: '/search_capital_flow',
                 name: EnumRouterName.search_capital_flow,
                 component: Main,
@@ -1294,7 +1288,6 @@ const routes: Array<RouteRecordRaw> = [
                         },
                     },
                 ]
->>>>>>> master
             },
         ],
     },

+ 6 - 6
src/services/request/serviceURL.ts

@@ -80,12 +80,12 @@ export const getUplodaUrl = (): string => {
 
 export const setServiceURL = (config: URL): void => {
     // console.log('URL', config);
-    //外网环境(175),外包同事使用
+    // 外网环境,外包同事使用
     serviceURL = config;
-    // if (process.env.NODE_ENV === 'development') {
-    //     serviceURL.goCommonSearchUrl = 'http://218.17.158.45:21001/api';
-    //     serviceURL.quoteUrl = 'ws://218.17.158.45:21004';
-    //     serviceURL.tradeUrl = 'ws://218.17.158.45:21005';
-    // }
+    if (process.env.NODE_ENV === 'development') {
+        serviceURL.goCommonSearchUrl = 'http://218.17.158.45:22003/api';
+        serviceURL.quoteUrl = 'ws://218.17.158.45:22008';
+        serviceURL.tradeUrl = 'ws://218.17.158.45:22009';
+    }
     console.log('api地址:', serviceURL);
 };