|
@@ -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
|
|
|
}
|
|
|
+
|