From 72ac240f2858cd74cb62b7647ca89d63bb71d247 Mon Sep 17 00:00:00 2001 From: 无木 <netfan@foxmail.com> Date: 星期四, 01 七月 2021 23:54:10 +0800 Subject: [PATCH] feat: routers support `ignoreRoute` option --- src/router/routes/modules/demo/feat.ts | 22 ++++++++++++++++++++++ 1 files changed, 22 insertions(+), 0 deletions(-) diff --git a/src/router/routes/modules/demo/feat.ts b/src/router/routes/modules/demo/feat.ts index 48438a2..c3291b1 100644 --- a/src/router/routes/modules/demo/feat.ts +++ b/src/router/routes/modules/demo/feat.ts @@ -241,6 +241,28 @@ title: t('routes.demo.feat.tab'), carryParam: true, }, + children: [ + { + path: 'testTab/id1', + name: 'TestTab1', + component: () => import('/@/views/demo/feat/tab-params/index.vue'), + meta: { + title: t('routes.demo.feat.tab1'), + carryParam: true, + ignoreRoute: true, + }, + }, + { + path: 'testTab/id2', + name: 'TestTab2', + component: () => import('/@/views/demo/feat/tab-params/index.vue'), + meta: { + title: t('routes.demo.feat.tab2'), + carryParam: true, + ignoreRoute: true, + }, + }, + ], }, ], }; -- Gitblit v1.8.0