Przeglądaj źródła

refactor: 更新测试环境下的 API 地址

duy 11 godzin temu
rodzic
commit
6794663ed6
2 zmienionych plików z 3 dodań i 2 usunięć
  1. 2 1
      public/index.html
  2. 1 1
      src/views/exctab/excelmodel/excelmodel.vue

+ 2 - 1
public/index.html

@@ -121,11 +121,12 @@
   (function() {
     var host = window.location.hostname;
     var apiUrl;
+
     
     // 设置不同环境下的 API 地址
     if (host === '192.168.0.109') {
       apiUrl = 'http://192.168.0.109:8088/web-apps/apps/api/documents/api.js';
-    } else if (host === '219.151.181.73') {
+    } else if (host === 'testmanger.hcxxy.com') {
       apiUrl = 'http://219.151.181.73:8088/web-apps/apps/api/documents/api.js';
     }  else if (host === '183.247.216.148') {
       apiUrl = 'http://183.247.216.148:8088/web-apps/apps/api/documents/api.js';

+ 1 - 1
src/views/exctab/excelmodel/excelmodel.vue

@@ -398,7 +398,7 @@ s
       const host = window.location.hostname;
       if (host === '192.168.0.109') {
         return 'http://192.168.0.109:8090';
-      } else if (host === '219.151.181.73') {
+      } else if (host === 'testmanger.hcxxy.com') {
         return 'http://219.151.181.73:8090';
       }else if(host === '183.247.216.148'){
          return 'http://183.247.216.148:8090';