This commit is contained in:
2025-04-23 19:48:47 +08:00
parent 86aa66800c
commit fbfd175258
12 changed files with 469 additions and 112 deletions

View File

@@ -30,6 +30,19 @@ const system = {
]
});
})
},
uploadFile: async (file) => {
const formData = new FormData();
formData.append('file', file);
return request({
UN_AES: true,
url: '/admin/upload/upload',
method: Method.POST,
data: formData,
headers: {
'Content-Type': 'multipart/form-data; boundary=--------------------------611824495457697861278283'
}
});
}
}