Browse Source

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

YunaiV 1 year ago
parent
commit
b0e27b2201
1 changed files with 2 additions and 1 deletions
  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