@ -157,6 +157,7 @@ export function uploadFile(url: string, formData: any) {
return fetch(url, {
method: 'POST',
body: formData,
mode:"cors"
})
.then(response => {
if (!response.ok) { throw new Error('上传失败'); }