|
|
@@ -1,11 +1,7 @@
|
|
|
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/";
|
|
|
-}
|
|
|
+
|
|
|
+console.log(import.meta.env.VITE_PROJECT_ENV);
|
|
|
+let baseurl = import.meta.env.VITE_BASEURL;
|
|
|
const uploadUrl = `${baseurl}cos/upload`;
|
|
|
const wayBillUrl = `${baseurl}voyage/uploadVoyageWayBill`;
|
|
|
|