|
|
@@ -1,13 +1,8 @@
|
|
|
-let baseurl = "https://interface.huihenduo.com.cn/hhd-pat/";
|
|
|
-if (
|
|
|
- window.location.href.indexOf("localhost") != -1 ||
|
|
|
- window.location.href.indexOf("test.photo.huihenduo.com.cn") != -1
|
|
|
-) {
|
|
|
- baseurl = "https://interface.huihenduo.com.cn/hhd-pat-dev/";
|
|
|
-}
|
|
|
+import store from "../store/index";
|
|
|
+import axios from "axios";
|
|
|
|
|
|
+let baseurl = store.state.baseurl;
|
|
|
const uploadUrl = `${baseurl}cos/upload`;
|
|
|
-import axios from "axios";
|
|
|
|
|
|
axios.interceptors.response.use(
|
|
|
function (response) {
|