Skip to content

Commit

Permalink
fix: close #29, add fullPath back (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
BuptStEve authored Apr 11, 2019
1 parent a42cc21 commit 11af778
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 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": "1.1.0",
"version": "1.1.1",
"description": "🏗 A common tool helps converting configs to api functions",
"main": "dist/TuaApi.cjs.js",
"module": "dist/TuaApi.esm.js",
Expand Down
2 changes: 1 addition & 1 deletion src/TuaApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ class TuaApi {
args = args === null ? {} : args

// 最终的运行时配置,runtimeOptions 有最高优先级
const runtimeParams = { type, path, params, prefix, apiName, ...rest, ...runtimeOptions }
const runtimeParams = { type, path, params, prefix, apiName, fullPath: `${prefix}/${path}`, ...rest, ...runtimeOptions }

// 自定义回调函数名称(用于 jsonp)
runtimeParams.callbackName = runtimeParams.callbackName || `${runtimeParams.path}Callback`
Expand Down

0 comments on commit 11af778

Please sign in to comment.