refactor: refactor route

This commit is contained in:
vben
2020-12-03 21:49:32 +08:00
parent 7bfe5f753d
commit c303ec1a23
84 changed files with 1575 additions and 1532 deletions

View File

@@ -1,33 +1,20 @@
import type { MenuModule } from '/@/router/types.d';
const menu: MenuModule[] = [
{
orderNo: 0,
menu: {
path: '/dashboard/welcome',
name: 'routes.dashboard.welcome',
},
const menu: MenuModule = {
orderNo: 10,
menu: {
name: 'routes.dashboard.dashboard',
path: '/dashboard',
children: [
{
path: '/workbench',
name: 'routes.dashboard.workbench',
},
{
path: '/analysis',
name: 'routes.dashboard.analysis',
},
],
},
{
orderNo: 10,
menu: {
name: 'routes.dashboard.dashboard',
path: '/dashboard',
children: [
{
path: '/workbench',
name: 'routes.dashboard.workbench',
},
{
path: '/analysis',
name: 'routes.dashboard.analysis',
},
// {
// path: '/welcome',
// name: 'routes.dashboard.welcome',
// },
],
},
},
];
};
export default menu;