From c6949b09afe7cb7ab8f352da7b11152ba76d6f8a Mon Sep 17 00:00:00 2001 From: Justin Zhu Date: Sun, 26 Sep 2021 21:23:35 +0800 Subject: [PATCH] Update index.md (#1133) --- docs/zh/guide/migration/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 }, -- 2.39.5