Skip to content

Commit b0e27b2

Browse files
committed
2 parents 6e5286f + d12887b commit b0e27b2

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/config/axios/index.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@ import { config } from './config'
55
const { default_headers } = config
66

77
const request = (option: any) => {
8-
const { url, method, params, data, headersType, responseType } = option
8+
const { url, method, params, data, headersType, responseType, ...config } = option
99
return service({
1010
url: url,
1111
method,
1212
params,
1313
data,
14+
...config,
1415
responseType: responseType,
1516
headers: {
1617
'Content-Type': headersType || default_headers

0 commit comments

Comments
 (0)