Explorar o código

样式 更新

wangzhihui %!s(int64=4) %!d(string=hai) anos
pai
achega
31e30e1b65
Modificáronse 1 ficheiros con 7 adicións e 1 borrados
  1. 7 1
      src/apis/config.js

+ 7 - 1
src/apis/config.js

@@ -1,4 +1,10 @@
-const baseurl = "https://interface.huihenduo.com.cn/hhd-pat/";
+const baseurl = `${
+  window.location.href.indexOf("localhost") == -1
+    ? "https://interface.huihenduo.com.cn/hhd-pat/"
+    : "https://interface.huihenduo.com.cn/hhd-pat-dev/"
+}`;
+// const baseurl = "https://interface.huihenduo.com.cn/hhd-pat/";
+
 const uploadUrl = `${baseurl}cos/upload`;
 import axios from "axios";