]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
docs: remove leftover text
authorEduardo San Martin Morote <posva13@gmail.com>
Wed, 10 Nov 2021 16:32:22 +0000 (17:32 +0100)
committerEduardo San Martin Morote <posva13@gmail.com>
Wed, 10 Nov 2021 16:32:22 +0000 (17:32 +0100)
Close #1195

docs/zh/guide/essentials/nested-routes.md

index 8f2db5b6d431da714169ae3e0146761a412492be..d7cf37095ab4a3b952eab58b5e1b888a7f8c9117 100644 (file)
@@ -54,7 +54,7 @@ const routes = [
     component: User,
     children: [
       {
-        // 当 /user/:id/profile 匹配成功 
+        // 当 /user/:id/profile 匹配成功
         // UserProfile 将被渲染到 User 的 <router-view> 内部
         path: 'profile',
         component: UserProfile,
@@ -82,8 +82,6 @@ const routes = [
     path: '/user/:id',
     component: User,
     children: [
-      // UserHome will be rendered inside User's <router-view>
-      // when /user/:id is matched
       // 当 /user/:id 匹配成功
       // UserHome 将被渲染到 User 的 <router-view> 内部
       { path: '', component: UserHome },
@@ -94,4 +92,4 @@ const routes = [
 ]
 ```
 
-这个例子的 demo 可以在[这里](https://codesandbox.io/s/nested-views-vue-router-4-examples-hl326?initialpath=%2Fusers%2Feduardo)找到。
\ No newline at end of file
+这个例子的 demo 可以在[这里](https://codesandbox.io/s/nested-views-vue-router-4-examples-hl326?initialpath=%2Fusers%2Feduardo)找到。