From 2a3f91be85b9beed5fe509cb73edc2f5bab962e2 Mon Sep 17 00:00:00 2001 From: Fine Date: Fri, 12 Aug 2022 10:37:30 +0800 Subject: [PATCH] add routes for process dashboards --- src/router/dashboard.ts | 33 ++++++++++++++++++++++++++++++++- 1 file changed, 32 insertions(+), 1 deletion(-) diff --git a/src/router/dashboard.ts b/src/router/dashboard.ts index c985e2fc..3fe651f2 100644 --- a/src/router/dashboard.ts +++ b/src/router/dashboard.ts @@ -182,7 +182,7 @@ export const routesDashboard: Array = [ import( /* webpackChunkName: "dashboards" */ "@/views/dashboard/Edit.vue" ), - name: "ViewPodRelation", + name: "PodRelation", meta: { notShow: true, }, @@ -205,6 +205,37 @@ export const routesDashboard: Array = [ }, ], }, + { + path: "", + redirect: + "/dashboard/:layerId/:entity/:serviceId/:podId/:processId/:destServiceId/:destPodId/:destProcessId/:name", + component: () => + import( + /* webpackChunkName: "dashboards" */ "@/views/dashboard/Edit.vue" + ), + name: "ProcessRelation", + meta: { + notShow: true, + }, + children: [ + { + path: "/dashboard/:layerId/:entity/:serviceId/:podId/:processId/:destServiceId/:destPodId/:destProcessId/:name", + component: () => + import( + /* webpackChunkName: "dashboards" */ "@/views/dashboard/Edit.vue" + ), + name: "ViewProcessRelation", + }, + { + path: "/dashboard/:layerId/:entity/:serviceId/:podId/:processId/:destServiceId/:destPodId/:destProcessId/:name/tab/:activeTabIndex", + component: () => + import( + /* webpackChunkName: "dashboards" */ "@/views/dashboard/Edit.vue" + ), + name: "ViewProcessRelationActiveTabIndex", + }, + ], + }, ], }, ];