From 11828f97d64f3ec71ee2decd2c102a515bd3e140 Mon Sep 17 00:00:00 2001 From: Gzx1999 Date: Mon, 20 Nov 2023 13:56:29 +0800 Subject: [PATCH] add create batch router --- frontend/src/router/index.ts | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/frontend/src/router/index.ts b/frontend/src/router/index.ts index 928c189..c41d700 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: '' + } } ] }, -- Gitee