]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
docs(zh): 文档错误修改 (#1262)
author看雪 <zhoubichuan@icloud.com>
Fri, 14 Jan 2022 10:42:03 +0000 (18:42 +0800)
committerGitHub <noreply@github.com>
Fri, 14 Jan 2022 10:42:03 +0000 (11:42 +0100)
docs/zh/guide/essentials/dynamic-matching.md

index 95d84e90b7cfa7921a8ddab70d4370e988683f49..70034bf58cc41ef4c0f59fd8ad60d31a710b1c7b 100644 (file)
@@ -1,6 +1,6 @@
 # 带参数的动态路由匹配
 
-很多时候,我们需要将给定匹配模式的路由映射到同一个组件。例如,我们可能有一个 `User` 组件,它应该对所有用户进行渲染,但用户 ID 不同。在 Vue Router 中,我们可以在路径中使用一个动态段来实现,我们称之为 _路径参数_ :
+很多时候,我们需要将给定匹配模式的路由映射到同一个组件。例如,我们可能有一个 `User` 组件,它应该对所有用户进行渲染,但用户 ID 不同。在 Vue Router 中,我们可以在路径中使用一个动态段来实现,我们称之为 _路径参数_ :
 
 ```js
 const User = {
@@ -9,7 +9,7 @@ const User = {
 
 // 这些都会传递给 `createRouter`
 const routes = [
-  // 动态段以冒号开始
+  // 动态段以冒号开始
   { path: '/users/:id', component: User },
 ]
 ```