Merge branch 'master' of https://github.com/yudaocode/yudao-ui-admin-vue3
This commit is contained in:
commit
b0e27b2201
@ -5,12 +5,13 @@ import { config } from './config'
|
|||||||
const { default_headers } = config
|
const { default_headers } = config
|
||||||
|
|
||||||
const request = (option: any) => {
|
const request = (option: any) => {
|
||||||
const { url, method, params, data, headersType, responseType } = option
|
const { url, method, params, data, headersType, responseType, ...config } = option
|
||||||
return service({
|
return service({
|
||||||
url: url,
|
url: url,
|
||||||
method,
|
method,
|
||||||
params,
|
params,
|
||||||
data,
|
data,
|
||||||
|
...config,
|
||||||
responseType: responseType,
|
responseType: responseType,
|
||||||
headers: {
|
headers: {
|
||||||
'Content-Type': headersType || default_headers
|
'Content-Type': headersType || default_headers
|
||||||
|
Loading…
Reference in New Issue
Block a user