文件上传功开发

This commit is contained in:
FengHui
2026-04-09 21:14:25 +08:00
parent b1942e90e0
commit 9b2cdecc16
3 changed files with 801 additions and 173 deletions

View File

@@ -155,7 +155,7 @@ export function uploadFile(tempFilePaths, loading = false) {
header["Authorization"] = encodeURIComponent(Authorization);
return new Promise((resolve, reject) => {
uni.uploadFile({
url: config.baseUrl + '/app/file/upload',
url: config.baseUrl + '/app/file/uploadFile',
filePath: tempFilePaths,
name: 'file',
header,