We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
router.map({ "/user/:userId":{ template:"省略", created: function () { //在这里怎么拿到userId } } })
The text was updated successfully, but these errors were encountered:
你的用法有一点问题,这里不能直接给一个组件对象,因为这里是一个 route config。组件要放在 component 选项里。
component
当前 route 在组件里可以用 this.route 对象,上面有 path, params 和 query 等信息。
this.route
path
params
query
Sorry, something went wrong.
No branches or pull requests
The text was updated successfully, but these errors were encountered: