diff --git a/apps/web-antd/src/router/routes/modules/nested.ts b/apps/web-antd/src/router/routes/modules/nested.ts
index 7cd2a85e..2265eddf 100644
--- a/apps/web-antd/src/router/routes/modules/nested.ts
+++ b/apps/web-antd/src/router/routes/modules/nested.ts
@@ -29,12 +29,24 @@ const routes: RouteRecordRaw[] = [
{
name: 'Menu2',
path: 'menu2',
- component: () => import('@/views/nested/menu-2.vue'),
meta: {
icon: 'ic:round-menu',
keepAlive: true,
title: $t('page.nested.menu2'),
},
+ redirect: '/nested/menu2/menu2-1',
+ children: [
+ {
+ name: 'Menu21',
+ path: 'menu2-1',
+ component: () => import('@/views/nested/menu-2-1.vue'),
+ meta: {
+ icon: 'ic:round-menu',
+ keepAlive: true,
+ title: $t('page.nested.menu21'),
+ },
+ },
+ ],
},
{
name: 'Menu3',
diff --git a/apps/web-antd/src/views/nested/menu-1.vue b/apps/web-antd/src/views/nested/menu-1.vue
index 5e4d7886..cf24d69a 100644
--- a/apps/web-antd/src/views/nested/menu-1.vue
+++ b/apps/web-antd/src/views/nested/menu-1.vue
@@ -1,16 +1,9 @@
+
-
{{ titleText }}
{{ descText }}
diff --git a/packages/locales/src/langs/en-US.yaml b/packages/locales/src/langs/en-US.yaml index 22545cc5..4cc926fd 100644 --- a/packages/locales/src/langs/en-US.yaml +++ b/packages/locales/src/langs/en-US.yaml @@ -109,6 +109,7 @@ page: page: Nested Menu menu1: Menu 1 menu2: Menu 2 + menu21: Menu 2-1 menu3: Menu 3 menu31: Menu 3-1 menu32: Menu 3-2 diff --git a/packages/locales/src/langs/zh-CN.yaml b/packages/locales/src/langs/zh-CN.yaml index e327a8d8..a33bba32 100644 --- a/packages/locales/src/langs/zh-CN.yaml +++ b/packages/locales/src/langs/zh-CN.yaml @@ -108,6 +108,7 @@ page: page: 嵌套菜单 menu1: 菜单 1 menu2: 菜单 2 + menu21: 菜单 2-1 menu3: 菜单 3 menu31: 菜单 3-1 menu32: 菜单 3-2