|
|
@@ -1,4 +1,12 @@
|
|
|
import { createStore } from "vuex";
|
|
|
+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/";
|
|
|
+}
|
|
|
+const uploadUrl = `${baseurl}cos/upload`;
|
|
|
|
|
|
const store = createStore({
|
|
|
state: {
|
|
|
@@ -6,6 +14,8 @@ const store = createStore({
|
|
|
firstTitle: "",
|
|
|
secondTitle: "",
|
|
|
currentMenuItem: "/cargoOwnerManage/cargoOwnerList",
|
|
|
+ baseurl,
|
|
|
+ uploadUrl,
|
|
|
},
|
|
|
mutations: {
|
|
|
changefirstTitle(state, text) {
|