Skip to content

Commit

Permalink
feat: 调整 createRequest 中 params 处理顺序
Browse files Browse the repository at this point in the history
  • Loading branch information
FairyEver committed Nov 21, 2020
1 parent 041fe66 commit bf7ed65
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/service.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ function createRequest (service) {
// 处理 get 请求的参数
// 请根据实际需要修改
if (!isEmpty(option.params)) {
option.params = {}
option.url = option.url + '?' + stringify(option.params)
option.params = {}
}
// 当需要以 form 形式发送时 处理发送的数据
// 请根据实际需要修改
Expand Down

0 comments on commit bf7ed65

Please sign in to comment.