feat: 服务接口地址动态获取

This commit is contained in:
duanshuwen
2025-11-13 19:43:03 +08:00
parent 48932e3851
commit 1028e20d42
14 changed files with 44 additions and 55 deletions

View File

@@ -1,8 +1,9 @@
import { BASE_URL } from "@/request/base/baseUrl";
import { getCurrentConfig } from "@/constant/base";
import { useAppStore } from "@/store";
export const updateImageFile = (file) => {
const url = BASE_URL + "/hotelBiz/hotBizCommon/upload";
const { serverConfig } = useAppStore();
const url = serverConfig.baseUrl + "/hotelBiz/hotBizCommon/upload";
const token = uni.getStorageSync("token");
const clientId = getCurrentConfig().clientId;