feat : 足迹日期选择新增有记录的日期项; request改为proxy + header url

This commit is contained in:
2025-12-11 14:04:17 +08:00
parent 2b1a87b65e
commit cb1052346e
4 changed files with 32 additions and 8 deletions

View File

@@ -82,7 +82,8 @@ export function createRequest(url, data = {}, method = 'GET', loading = false, h
})
}
let header = {
...headers
...headers,
'X-Target-URI': url
};
const userStore = useUserStore();
const token = userStore.token;
@@ -117,7 +118,8 @@ export function createRequest(url, data = {}, method = 'GET', loading = false, h
// ------------------------------------------------------------------
return new Promise((resolve, reject) => {
uni.request({
url: config.baseUrl + url,
url: config.baseUrl + '/app/proxy',
// url: config.baseUrl + url,
method: method,
data: requestData,
header,