]> git.ipfire.org Git - thirdparty/vuejs/router.git/commitdiff
Update index.md (#1133)
authorJustin Zhu <vac872089248@gmail.com>
Sun, 26 Sep 2021 13:23:35 +0000 (21:23 +0800)
committerGitHub <noreply@github.com>
Sun, 26 Sep 2021 13:23:35 +0000 (15:23 +0200)
docs/zh/guide/migration/index.md

index 7bfa7a29a07e9bcf5ad4ed5177fa5564487e5e2c..35915ba2b9be06ddceb622619d0424fcd54f6276 100644 (file)
@@ -88,7 +88,7 @@ createRouter({
 ```js
 const routes = [
   // pathMatch 是参数的名称,例如,跳转到 /not/found 会得到
-  // { params: { params: { pathMatch: ['not', 'found'] }}
+  // { params: { pathMatch: ['not', 'found'] } }
   // 这要归功于最后一个 *,意思是重复的参数,如果你
   // 打算直接使用未匹配的路径名称导航到该路径,这是必要的
   { path: '/:pathMatch(.*)*', name: 'not-found', component: NotFound },