marymelisa 4 years ago
parent
commit
23d30edc43
1 changed files with 3 additions and 3 deletions
  1. 3 3
      src/services/request/serviceURL.ts

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

@@ -73,10 +73,10 @@ export const commonSearchUrl = (url: string): string => {
 export const setServiceURL = (config: URL): void => {
     // console.log('URL', config);
     // 外网环境(175),外包同事使用
-    // if (process.env.NODE_ENV === 'development') {
+    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';
-    // }
-    // serviceURL = config;
+    }
+    serviceURL = config;
 };