pull/1/head
954270063@qq.com 2020-04-21 14:46:37 +08:00
parent 557777c94c
commit 13c0ffa9ee
2 changed files with 2 additions and 2 deletions

View File

@ -143,7 +143,7 @@ axios.post('/test', { test: 1 }, {
|transformRequest|Function/Array<.Function>| |自定义转换请求数据|是|
|transformResponse|Function/Array<.Function>| |自定义转换响应数据|是|
|errorHandler|Function|[查看](https://github.com/early-autumn/axios-miniprogram/blob/master/src/defaults.ts)|自定义错误处理|是|
|cancelToken|Object||取消令牌|是|
|cancelToken|Object| |取消令牌|是|
|timeout|Number|10000|超时时间| |
|dataType|String|json|响应数据格式|是|
|responseType|String|text|响应数据类型|是|

View File

@ -1,6 +1,6 @@
{
"name": "axios-miniprogram",
"version": "1.1.0",
"version": "1.1.1",
"description": "基于 Promise 的 HTTP 请求库,适用于各大小程序平台。",
"main": "package/index.js",
"miniprogram": "package",