mirror of
https://github.com/vbenjs/vue-vben-admin.git
synced 2025-08-28 00:42:12 +08:00
refactor: refactor route
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user