Skip to content

Commit

Permalink
fix: 修复请求方式都为get的bug
Browse files Browse the repository at this point in the history
  • Loading branch information
lei-mu committed Jun 2, 2020
1 parent f27999d commit 11e92e7
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 7 deletions.
1 change: 1 addition & 0 deletions example/request-demo/utils/luch-request/adapters/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export default (config) => {
requestTask = uni.downloadFile({..._config,complete})
} else {
const optionalKeys = [
'method',
'data',
'dataType ',
// #ifndef MP-ALIPAY || APP-PLUS
Expand Down
9 changes: 5 additions & 4 deletions example/request-demo/utils/luch-request/core/Request.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
/**
* @Class Request
* @description luch-request http请求插件
* @version 3.0.0
* @version 3.0.1
* @Author lu-ch
* @Date 2020-06-01
* @Date 2020-06-02
* @Email webwork.s@qq.com
* 文档: https://quanzhan.co/luch-request/
* http://ext.dcloud.net.cn/plugin?id=392
* hbuilderx:2.7.9
* github: https://github.com/lei-mu/luch-request
* DCloud: http://ext.dcloud.net.cn/plugin?id=392
* HBuilderX: 2.7.9
*/


Expand Down
4 changes: 4 additions & 0 deletions history.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 3.0.1 (2020-06-02)

1. Bug Fix: 请求方式都为` GET `的bug

## 3.0.0 (2020-06-01)

1. New Feature: 支持多拦截器
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "luch-request",
"version": "3.0.0",
"version": "3.0.1",
"description": "基于Promise实现uni-app request 请求插件",
"keywords": [
"uni-app",
Expand Down
1 change: 1 addition & 0 deletions src/lib/adapters/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ export default (config) => {
requestTask = uni.downloadFile({..._config,complete})
} else {
const optionalKeys = [
'method',
'data',
'dataType ',
// #ifndef MP-ALIPAY || APP-PLUS
Expand Down
4 changes: 2 additions & 2 deletions src/lib/core/Request.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/**
* @Class Request
* @description luch-request http请求插件
* @version 3.0.0
* @version 3.0.1
* @Author lu-ch
* @Date 2020-06-01
* @Date 2020-06-02
* @Email webwork.s@qq.com
* 文档: https://quanzhan.co/luch-request/
* github: https://github.com/lei-mu/luch-request
Expand Down

0 comments on commit 11e92e7

Please # to comment.