Skip to content

Commit

Permalink
chore: define components router
Browse files Browse the repository at this point in the history
  • Loading branch information
wangjue666 committed Aug 3, 2024
1 parent d3ed675 commit b3780c1
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 1 deletion.
7 changes: 6 additions & 1 deletion apps/web-antd/src/locales/langs/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -54,6 +56,9 @@
"level": "Level Mode",
"levelDetail": "Level Mode Detail"
}
},
"comp": {
"title": "Component"
}
}
}
3 changes: 3 additions & 0 deletions apps/web-antd/src/locales/langs/zh-CN.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@
"levelDetail": "层级模式详情",
"lateralDetail": "平级模式详情"
}
},
"comp": {
"title": "组件"
}
}
}
21 changes: 21 additions & 0 deletions apps/web-antd/src/router/routes/modules/comp.ts
Original file line number Diff line number Diff line change
@@ -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;

0 comments on commit b3780c1

Please sign in to comment.