diff --git a/src/utils/request.js b/src/utils/request.js index 591da964f5c9f08118bfb6c1e2daafcdaea4def0..af1aaf744c6d74a57644306fa80d354d9074d12d 100644 --- a/src/utils/request.js +++ b/src/utils/request.js @@ -47,7 +47,7 @@ export default function request(url, options) { credentials: 'include', }; const newOptions = { ...defaultOptions, ...options }; - if (newOptions.method === 'POST' || newOptions.method === 'PUT') { + if (newOptions.method === 'POST' || newOptions.method === 'PUT' || newOptions.method === 'DELETE') { if (!(newOptions.body instanceof FormData)) { newOptions.headers = { Accept: 'application/json',