-
Notifications
You must be signed in to change notification settings - Fork 78
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
参数不固定的子状态bug #37
Comments
父子状态之间做一下params共享即可 |
不好做共享~ |
https://github.com/gogoyqj/mmRouter - 这个里面已经加好了 |
给正美提交个merge请求? |
#39 改完后出了个新bug |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
abstract:true,表示不参与匹配,这样他的子集url:'',等于覆盖了其默认值,这样确实可以让任何子集来填充父级的默认状态
但是,不参与匹配,似乎无法获取this.params这种参数
本来父级应该做一些全局操作嘛,获取不到params的话,如果path是带参数的,就不好初始化状态啦。例子:
路由是
/aaa/bbb/ccc
时,this.params能正确输出。
路由是
/aaa/bbb/ccc/sql
这个子状态时,this.params输出为undefined
The text was updated successfully, but these errors were encountered: