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

[Docs/zh] 导航守卫解析流程的语义描述问题 #2697

Closed
pot-code opened this Issue Apr 9, 2019 · 1 comment

Comments

Projects
None yet
2 participants
@pot-code
Copy link

pot-code commented Apr 9, 2019

Version

3.0.3

Reproduction link

https://router.vuejs.org/zh/guide/advanced/navigation-guards.html#%E5%AE%8C%E6%95%B4%E7%9A%84%E5%AF%BC%E8%88%AA%E8%A7%A3%E6%9E%90%E6%B5%81%E7%A8%8B

Steps to reproduce

None

What is expected?

  1. 调用 beforeRouteEnter 守卫中传给 next 的回调函数,用创建好的组件实例作为回调函数的参数传入

What is actually happening?

  1. 用创建好的实例调用 beforeRouteEnter 守卫中传给 next 的回调函数。

这里的“用创建好的实例”,是个很有歧义的描述,是创建好的组件实例,还是路由实例?

@posva

This comment has been minimized.

Copy link
Member

posva commented Apr 9, 2019

If you have a suggestion to the docs, please open a pull request

@posva posva closed this Apr 9, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.