王文博 %!s(int64=5) %!d(string=hai) anos
pai
achega
746b9b5af3
Modificáronse 1 ficheiros con 12 adicións e 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
 }
+