Browse Source

域名调整

徐滕 1 day atrás
parent
commit
ab4cf0f255
1 changed files with 21 additions and 8 deletions
  1. 21 8
      config.js

+ 21 - 8
config.js

@@ -8,14 +8,27 @@ if (process.env.NODE_ENV === "development") {
   // APP_SERVER_URL = 'http://192.168.2.131/api'
   // APP_SERVER_URL = "http://cpaoa.xgccpm.com/api";
     const host = window.location.hostname;
-    if (host === "xxx.com") {
-      APP_SERVER_URL = "https://xxx.com/api";
-    } else if (host === "xxx.com") {
-      APP_SERVER_URL = "https://xxx.com/api";
-    } else if (host === "xxx.com") {
-      APP_SERVER_URL = "https://xxx.com/api";
-    } else if (host === "xxx.com") {
-      APP_SERVER_URL = "https://xxx.com/api";
+    if (host === "cpaoa.xgccpm.com") {
+        console.log("cpaoa.xgccpm.com")
+      APP_SERVER_URL = "http://cpaoa.xgccpm.com/api";
+    } else if (host === "cpapmis.xgccpm.com") {
+        console.log("cpapmis.xgccpm.com")
+      APP_SERVER_URL = "http://cpapmis.xgccpm.com/api";
+    } else if (host === "amc.xgccpm.com") {
+        console.log("amc.xgccpm.com")
+      APP_SERVER_URL = "http://amc.xgccpm.com/api";
+    } else if (host === "zs.xgccpm.com") {
+        console.log("zs.xgccpm.com")
+      APP_SERVER_URL = "http://zs.xgccpm.com/api";
+    } else if (host === "wz.xgccpm.com") {
+        console.log("wz.xgccpm.com")
+      APP_SERVER_URL = "http://wz.xgccpm.com/api";
+    } else if (host === "sz.xgccpm.com") {
+        console.log("sz.xgccpm.com")
+      APP_SERVER_URL = "http://sz.xgccpm.com/api";
+    } else if (host === "jct.xgccpm.com") {
+        console.log("jct.xgccpm.com")
+      APP_SERVER_URL = "http://jct.xgccpm.com/api";
     }
 }