master_basic
鲁誉程 1 year ago
parent 9ab0c27c1a
commit 4f7914f997

@ -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('上传失败'); }

Loading…
Cancel
Save