diff --git a/frontend/src/router/index.ts b/frontend/src/router/index.ts index 928c189101d372e7fbbf63aa3bed726157a99b83..c41d700021813e17c49f15f6263f7a75f2a50c95 100644 --- a/frontend/src/router/index.ts +++ b/frontend/src/router/index.ts @@ -33,12 +33,12 @@ let sidebarRoutes = [ }, { path: '/cluster', - component: () => import('../views/Cluster/Cluster.vue'), meta: { title: 'cluster', header_title: "系统", panel: "cluster", icon: 'Platform' }, children: [ { path: '', - redirect: '/cluster/macList' + // redirect: '/cluster/macList' + redirect: '/cluster/createBatch' }, { path: '/cluster/macList', @@ -57,6 +57,24 @@ let sidebarRoutes = [ ], icon: '' } + }, + { + path: '/cluster/createBatch', + name: 'createBatch', + component: () => import('../views/Cluster/CreateBatch.vue'), + meta: { + header_title: "创建批次", + panel: "/cluster/createBatch", + breadcrumb: [ + { + name: '系统', path: '/cluster', children: [ + { name: 'macList', menuName: '机器列表' }, + ] + }, + { name: '创建批次' }, + ], + icon: '' + } } ] },