feat : 足迹日期选择新增有记录的日期项; request改为proxy + header url
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user