将主图、图片列表和属性图片的上传方式从手动上传改为自动上传,使用http-request自定义上传处理

This commit is contained in:
WUSIJIAN
2025-12-25 17:55:52 +08:00
parent 73373ad7a1
commit 559bc4f6f1
2 changed files with 64 additions and 52 deletions

View File

@@ -76,7 +76,7 @@ export function uploadAssetImage(file: File) {
const formData = new FormData();
formData.append('file', file);
return newService({
url: '/assets/asset/Uploadimage',
url: '/assets/asset/uploadImage',
method: 'post',
data: formData,
headers: {