From: Justin Zhu Date: Sun, 26 Sep 2021 13:23:35 +0000 (+0800) Subject: Update index.md (#1133) X-Git-Tag: v4.0.12~15 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c6949b09afe7cb7ab8f352da7b11152ba76d6f8a;p=thirdparty%2Fvuejs%2Frouter.git Update index.md (#1133) --- diff --git a/docs/zh/guide/migration/index.md b/docs/zh/guide/migration/index.md index 7bfa7a29..35915ba2 100644 --- a/docs/zh/guide/migration/index.md +++ b/docs/zh/guide/migration/index.md @@ -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 },