-
Notifications
You must be signed in to change notification settings - Fork 237
Update routing.md #136
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
Update routing.md #136
Conversation
@@ -36,7 +36,7 @@ export function createApp () { | |||
router, | |||
render: h => h(App) | |||
}) | |||
// 注入 router 到根 Vue 实例 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do you remove the comment?
See the en
docs:
https://github.com/vuejs/vue-ssr-docs/blame/master/en/routing.md#L44
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thought it is a redundancy, because line 39 is same to line 35. But according to the en version, it should be a translation error.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, the 2 comments have different meanings imo. The L39 is about inject and L39 is about return. So agree with @kazupon .
zh/routing.md
Outdated
@@ -36,8 +36,8 @@ export function createApp () { | |||
router, | |||
render: h => h(App) | |||
}) | |||
// 注入 router 到根 Vue 实例 | |||
return { app, router } | |||
// 返回app和router |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Btw. Please leave spaces between Chinese chars and English letters. (like: // 返回 app 和 router
)
Thanks! |
No description provided.