王文博 hace 5 años
padre
commit
746b9b5af3
Se han modificado 1 ficheros con 12 adiciones y 1 borrados
  1. 12 1
      src/conf/config.js

+ 12 - 1
src/conf/config.js

@@ -1,5 +1,16 @@
-const dc = 'http://localhost:9090'
+import { Domain } from "domain"
+import { hostname } from "os"
+
+let dc = 'http://localhost:8080'
+
+
+if (document.domain == 'localhost') {
+  dc = "http://localhost:8080"
+} else {
+  dc = "http://dc.weipaitang.com"
+}
 
 export {
   dc
 }
+