feat: 区别不同的小程序的缓存问题

This commit is contained in:
2025-12-15 16:26:45 +08:00
parent 09452bf600
commit a3c363cbc9
8 changed files with 43 additions and 16 deletions

View File

@@ -1,10 +1,11 @@
import { getCurrentConfig } from "@/constant/base";
import { useAppStore } from "@/store";
import { getStorageSyncToken } from "@/constant/token";
export const updateImageFile = (file) => {
const { serverConfig } = useAppStore();
const url = serverConfig.baseUrl + "/hotelBiz/hotBizCommon/upload";
const token = uni.getStorageSync("token");
const token = getStorageSyncToken();
const clientId = getCurrentConfig().clientId;
return new Promise((resolve, reject) => {