Skip to content

Commit

Permalink
Merge pull request NervJS#15340 from zxdsax/main
Browse files Browse the repository at this point in the history
fix: 修改request接口参数的支持情况
  • Loading branch information
qican777 authored Mar 13, 2024
2 parents a169d74 + 1a1922b commit 25a55a3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1239,6 +1239,12 @@
"TRACE": true,
"CONNECT": true
},
"dataType": {
"json": true,
"text": true,
"base64": true,
"arraybuffer": true
},
"responseType": {
"text": true,
"arraybuffer": true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ const link = new Link(taroInterceptor)
* 发起 HTTPS 网络请求
*
* @canUse request
* @__object [url, data, header, timeout, method[OPTIONS, GET, HEAD, POST, PUT, PATCH, DELETE, TRACE, CONNECT], responseType[text, arraybuffer], enableCache]
* @__object [url, data, header, timeout, method[OPTIONS, GET, HEAD, POST, PUT, PATCH, DELETE, TRACE, CONNECT], dataType[json, text, base64, arraybuffer], responseType[text, arraybuffer], enableCache]
* @__success [data, header, statusCode, cookies]
*/
export function request (options) {
Expand Down

0 comments on commit 25a55a3

Please sign in to comment.