File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -13,7 +13,7 @@ const isJSONstr = str => {
13
13
return false
14
14
}
15
15
}
16
- export default function mpAdapter ( config : AxiosRequestConfig , {
16
+ export default function mpAdapter ( config : AxiosRequestConfig , {
17
17
transformRequestOption = requestOption => requestOption
18
18
} : {
19
19
transformRequestOption ?: ( requestOption : any ) => any
Original file line number Diff line number Diff line change @@ -116,7 +116,7 @@ export function transformConfig (config: MpRequestConfig): any {
116
116
if ( [ EnumPlatForm . 支付宝 , EnumPlatForm . 钉钉 ] . includes ( platFormName ) ) {
117
117
config . headers = config . header
118
118
delete config . header
119
- if ( EnumPlatForm . 钉钉 === platFormName && config . method !== " GET" && config . headers ?. [ 'Content-Type' ] === 'application/json' && Object . prototype . toString . call ( config . data ) === '[object Object]' ) {
119
+ if ( EnumPlatForm . 钉钉 === platFormName && config . method !== ' GET' && config . headers ?. [ 'Content-Type' ] === 'application/json' && Object . prototype . toString . call ( config . data ) === '[object Object]' ) {
120
120
// Content-Type为application/json时,data参数只支持json字符串,需要手动调用JSON.stringify进行序列化
121
121
config . data = JSON . stringify ( config . data )
122
122
}
You can’t perform that action at this time.
0 commit comments