浏览代码

样式 更新

wangzhihui 4 年之前
父节点
当前提交
31e30e1b65
共有 1 个文件被更改,包括 7 次插入1 次删除
  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";