Skip to content

Commit

Permalink
fix(with-weapp): 给onShow传递options
Browse files Browse the repository at this point in the history
  • Loading branch information
honlyHuang committed Aug 27, 2019
1 parent 064ec7e commit 9d94380
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/taro-with-weapp/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,9 @@ export default function withWeapp (componentType: string, weappConf?: Object) {

componentDidShow () {
this.safeExecute(this.onShow)
this.safeExecute(super.componentDidShow)
if (super.componentDidShow) {
super.componentDidShow.call(this, this.$router.params || {})
}
}

componentDidMount () {
Expand Down

0 comments on commit 9d94380

Please sign in to comment.