diff --git a/src/utils/request.ts b/src/utils/request.ts index 6f46eda..255167c 100644 --- a/src/utils/request.ts +++ b/src/utils/request.ts @@ -73,7 +73,7 @@ export class Request { const { retRaw, upload, ...reqConfig } = option ?? {}; return new Promise((resolve) => { this.instance - .post(url, data, { ...reqConfig, headers: { 'content-type': upload ? 'multipart/form-data' : 'application/json' } }) + .post(url, data, { headers: { 'content-type': upload ? 'multipart/form-data' : 'application/json' }, ...reqConfig }) .then((res) => { const resData = res.data; if (retRaw) {