We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Learn more about funding links in repositories.
Report abuse
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
[vue] 在vue组件中怎么获取到当前的路由信息?
The text was updated successfully, but these errors were encountered:
this.$router.path 或者 this.$router
Sorry, something went wrong.
是this.$route.path吧
this.$router.path 或者 this.$router 是this.$route.path吧
对,
如果是template中获取直接 $route 即可 如果是script中获取 this.$route 可以 console.log(this.$route) 查看其详细信息
$route
this.$route
console.log(this.$route)
No branches or pull requests
[vue] 在vue组件中怎么获取到当前的路由信息?
The text was updated successfully, but these errors were encountered: