Skip to content

Commit

Permalink
fix(taro-quickapp): 快应用获取页面参数时增加容错
Browse files Browse the repository at this point in the history
  • Loading branch information
luckyadam committed Jul 10, 2019
1 parent 1856ef2 commit 12c9998
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/taro-quickapp/src/create-component.js
Original file line number Diff line number Diff line change
Expand Up @@ -210,6 +210,9 @@ function bindProperties (componentConf, ComponentClass) {
}

function getPageUrlParams (url) {
if (!url) {
return {}
}
const queryStr = url.replace(/^.*\?&?/, '')
const params = queryToJson(queryStr)
return params
Expand Down

0 comments on commit 12c9998

Please sign in to comment.