Merge branch 'main' into property-only-app

property-only-app
wx-jincw 2 months ago
commit 6c6f019e5b

@ -98,8 +98,11 @@ request.uploadFile = (filePath, name = 'file', formData = {}, options = {}) => {
uid: store.state.app.uid,
...(options.params || {})
}
if (queryObj) {
uploadUrl += '?' + new URLSearchParams(queryObj).toString();
if (Object.keys(queryObj).length > 0) {
const queryString = Object.entries(queryObj)
.map(([key, value]) => `${encodeURIComponent(key)}=${encodeURIComponent(value)}`)
.join('&');
uploadUrl += '?' + queryString;
}
// 添加token

Loading…
Cancel
Save