|
|
@@ -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";
|
|
|
|