Skip to content
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

关于组件内导航钩子的语法错误 #27

Open
lai397826696 opened this issue Jul 17, 2017 · 1 comment
Open

关于组件内导航钩子的语法错误 #27

lai397826696 opened this issue Jul 17, 2017 · 1 comment

Comments

@lai397826696
Copy link

输入beforeRouteEnter和beforeRouteLeave,得出
beforeRouteEnter((to, from, next) => {
//does NOT have access to this component instance

}),语法报错,应该改成
beforeRouteEnter(to, from, next) {
//does NOT have access to this component instance

}这样才对

@lai397826696
Copy link
Author

这里不建议用箭头函数哇

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant