feat: 服务接口地址动态获取
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user