diff --git a/apps/web-antd/src/locales/langs/en-US.json b/apps/web-antd/src/locales/langs/en-US.json index 666b4ab2946..e7f689a9302 100644 --- a/apps/web-antd/src/locales/langs/en-US.json +++ b/apps/web-antd/src/locales/langs/en-US.json @@ -55,10 +55,10 @@ "lateralDetail": "Lateral Mode Detail", "level": "Level Mode", "levelDetail": "Level Mode Detail" + }, + "comp": { + "title": "Component" } - }, - "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 b75217bb725..daf332afd0c 100644 --- a/apps/web-antd/src/locales/langs/zh-CN.json +++ b/apps/web-antd/src/locales/langs/zh-CN.json @@ -55,10 +55,10 @@ "level": "层级模式", "levelDetail": "层级模式详情", "lateralDetail": "平级模式详情" + }, + "comp": { + "title": "组件" } - }, - "comp": { - "title": "组件" } } } diff --git a/apps/web-antd/src/router/routes/modules/comp.ts b/apps/web-antd/src/router/routes/modules/comp.ts deleted file mode 100644 index ee430c04c1a..00000000000 --- a/apps/web-antd/src/router/routes/modules/comp.ts +++ /dev/null @@ -1,21 +0,0 @@ -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; diff --git a/apps/web-antd/src/router/routes/modules/demos.ts b/apps/web-antd/src/router/routes/modules/demos.ts index ad88a548611..0d95ec72001 100644 --- a/apps/web-antd/src/router/routes/modules/demos.ts +++ b/apps/web-antd/src/router/routes/modules/demos.ts @@ -167,6 +167,16 @@ const routes: RouteRecordRaw[] = [ }, ], }, + // 组件 + { + meta: { + icon: 'ion:layers-outline', + title: $t('page.demos.comp.title'), + }, + name: 'CompDemos', + path: '/demos/comp', + children: [], + }, // 面包屑导航 { name: 'BreadcrumbDemos',