From a7bcbcd9791cd4633ce9fafff7a6ffb6e5b35150 Mon Sep 17 00:00:00 2001 From: Qiuxia Fan Date: Mon, 13 Jun 2022 16:18:59 +0800 Subject: [PATCH] copy tab link --- src/router/dashboard.ts | 65 +++++++++++++++++++++++----- src/views/dashboard/controls/Tab.vue | 13 +++++- 2 files changed, 67 insertions(+), 11 deletions(-) diff --git a/src/router/dashboard.ts b/src/router/dashboard.ts index 93fc53ac..f7274a3b 100644 --- a/src/router/dashboard.ts +++ b/src/router/dashboard.ts @@ -61,8 +61,17 @@ export const routesDashboard: Array = [ ), name: "Create", meta: { - title: "dashboardEdit", - exact: false, + notShow: true, + }, + }, + { + path: "/dashboard/:layerId/:entity/:name/:activeTabIndex", + component: () => + import( + /* webpackChunkName: "dashboards" */ "@/views/dashboard/Edit.vue" + ), + name: "CreateaAtiveTabIndex", + meta: { notShow: true, }, }, @@ -74,8 +83,17 @@ export const routesDashboard: Array = [ ), name: "View", meta: { - title: "dashboardEdit", - exact: false, + notShow: true, + }, + }, + { + path: "/dashboard/:layerId/:entity/:serviceId/:name/:activeTabIndex", + component: () => + import( + /* webpackChunkName: "dashboards" */ "@/views/dashboard/Edit.vue" + ), + name: "ViewActiveTabIndex", + meta: { notShow: true, }, }, @@ -87,8 +105,17 @@ export const routesDashboard: Array = [ ), name: "ViewServiceRelation", meta: { - title: "dashboardEdit", - exact: false, + notShow: true, + }, + }, + { + path: "/dashboard/related/:layerId/:entity/:serviceId/:destServiceId/:name/:activeTabIndex", + component: () => + import( + /* webpackChunkName: "dashboards" */ "@/views/dashboard/Edit.vue" + ), + name: "ViewServiceRelationActiveTabIndex", + meta: { notShow: true, }, }, @@ -100,8 +127,17 @@ export const routesDashboard: Array = [ ), name: "ViewPod", meta: { - title: "dashboardEdit", - exact: false, + notShow: true, + }, + }, + { + path: "/dashboard/:layerId/:entity/:serviceId/:podId/:name/:activeTabIndex", + component: () => + import( + /* webpackChunkName: "dashboards" */ "@/views/dashboard/Edit.vue" + ), + name: "ViewPodActiveTabIndex", + meta: { notShow: true, }, }, @@ -113,8 +149,17 @@ export const routesDashboard: Array = [ ), name: "ViewPodRelation", meta: { - title: "dashboardEdit", - exact: true, + notShow: true, + }, + }, + { + path: "/dashboard/:layerId/:entity/:serviceId/:podId/:destServiceId/:destPodId/:name/:activeTabIndex", + component: () => + import( + /* webpackChunkName: "dashboards" */ "@/views/dashboard/Edit.vue" + ), + name: "ViewPodRelationActiveTabIndex", + meta: { notShow: true, }, }, diff --git a/src/views/dashboard/controls/Tab.vue b/src/views/dashboard/controls/Tab.vue index 50642870..c8059817 100644 --- a/src/views/dashboard/controls/Tab.vue +++ b/src/views/dashboard/controls/Tab.vue @@ -55,6 +55,9 @@ limitations under the License. --> {{ t("editTab") }} + + Copy Link + {{ t("delete") }} @@ -99,6 +102,7 @@ limitations under the License. -->