From b3780c136a6008bc0029fb44e95908a7d7aeca93 Mon Sep 17 00:00:00 2001 From: invalid w Date: Sat, 3 Aug 2024 12:20:01 +0800 Subject: [PATCH] chore: define components router --- apps/web-antd/src/locales/langs/en-US.json | 7 ++++++- apps/web-antd/src/locales/langs/zh-CN.json | 3 +++ .../src/router/routes/modules/comp.ts | 21 +++++++++++++++++++ 3 files changed, 30 insertions(+), 1 deletion(-) create mode 100644 apps/web-antd/src/router/routes/modules/comp.ts diff --git a/apps/web-antd/src/locales/langs/en-US.json b/apps/web-antd/src/locales/langs/en-US.json index 6b1d636ed6d..666b4ab2946 100644 --- a/apps/web-antd/src/locales/langs/en-US.json +++ b/apps/web-antd/src/locales/langs/en-US.json @@ -37,7 +37,9 @@ "title": "Active Menu Icon", "children": "Children Active Icon" }, - "fallback": { "title": "Fallback Page" }, + "fallback": { + "title": "Fallback Page" + }, "features": { "title": "Features", "hideChildrenInMenu": "Hide Menu Children", @@ -54,6 +56,9 @@ "level": "Level Mode", "levelDetail": "Level Mode Detail" } + }, + "comp": { + "title": "Component" } } } diff --git a/apps/web-antd/src/locales/langs/zh-CN.json b/apps/web-antd/src/locales/langs/zh-CN.json index 0ce11b74e5f..b75217bb725 100644 --- a/apps/web-antd/src/locales/langs/zh-CN.json +++ b/apps/web-antd/src/locales/langs/zh-CN.json @@ -56,6 +56,9 @@ "levelDetail": "层级模式详情", "lateralDetail": "平级模式详情" } + }, + "comp": { + "title": "组件" } } } diff --git a/apps/web-antd/src/router/routes/modules/comp.ts b/apps/web-antd/src/router/routes/modules/comp.ts new file mode 100644 index 00000000000..ee430c04c1a --- /dev/null +++ b/apps/web-antd/src/router/routes/modules/comp.ts @@ -0,0 +1,21 @@ +import type { RouteRecordRaw } from 'vue-router'; + +import { BasicLayout } from '#/layouts'; +import { $t } from '#/locales'; + +const routes: RouteRecordRaw[] = [ + { + component: BasicLayout, + meta: { + icon: 'ic:baseline-view-in-ar', + keepAlive: true, + order: 1000, + title: $t('page.comp.title'), + }, + name: 'Comp', + path: '/comp', + children: [], + }, +]; + +export default routes;