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

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

Loading…
Cancel
Save