Skip to content

Commit

Permalink
fix(taro): 初始化组件$router
Browse files Browse the repository at this point in the history
  • Loading branch information
luckyadam committed Apr 30, 2018
1 parent e3b6fdc commit f6d22a4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions packages/taro/src/component.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ class Component {
static defaultProps = {}
$components = {}
$$components = {}
$router = {
$params: {}
}
$path = ''
$name = ''
$isComponent = true
Expand Down

0 comments on commit f6d22a4

Please sign in to comment.