Skip to content

Commit

Permalink
fix: reqFn params in wx
Browse files Browse the repository at this point in the history
  • Loading branch information
BuptStEve committed Nov 15, 2018
1 parent 83d0b78 commit 6c98554
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "tua-api",
"version": "0.3.1",
"version": "0.3.2",
"main": "dist/umd.js",
"module": "dist/es.js",
"jsnext:main": "dist/es.js",
Expand Down
2 changes: 1 addition & 1 deletion src/TuaApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ class TuaApi {
const method = type.toUpperCase()

if (reqType === 'wx') {
return getWxPromise({ url, data, method, ...rest })
return getWxPromise({ url, fullUrl, data, method, ...rest })
}

if (reqType === 'axios') {
Expand Down
2 changes: 1 addition & 1 deletion src/adapters/wx.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@ import { WX_VALID_METHODS } from '../constants'

export const getWxPromise = ({
url,
data,
method,
header,
fullUrl,
reqParams: data,
isShowLoading = true,
showLoadingFn = () => wx.showLoading({ title: '加载中' }),
hideLoadingFn = wx.hideLoading.bind(wx),
Expand Down

0 comments on commit 6c98554

Please sign in to comment.