Selaa lähdekoodia

Merge branch 'master' of https://github.com/yudaocode/yudao-ui-admin-vue3

YunaiV 1 vuosi sitten
vanhempi
commit
b0e27b2201
1 muutettua tiedostoa jossa 2 lisäystä ja 1 poistoa
  1. 2 1
      src/config/axios/index.ts

+ 2 - 1
src/config/axios/index.ts

@@ -5,12 +5,13 @@ import { config } from './config'
 const { default_headers } = config
 
 const request = (option: any) => {
-  const { url, method, params, data, headersType, responseType } = option
+  const { url, method, params, data, headersType, responseType, ...config } = option
   return service({
     url: url,
     method,
     params,
     data,
+    ...config,
     responseType: responseType,
     headers: {
       'Content-Type': headersType || default_headers