From 06afa8b2572bbe4d6fbdf4cd01cf2be86aba2465 Mon Sep 17 00:00:00 2001 From: yuyi Date: Tue, 2 Apr 2024 10:56:06 +0800 Subject: [PATCH] fix(route): remove xxxId in menu items --- ui/src/pages/Cluster/Detail/index.tsx | 2 +- ui/src/pages/Tenant/Detail/index.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/src/pages/Cluster/Detail/index.tsx b/ui/src/pages/Cluster/Detail/index.tsx index 5414146f4..9f406b9d2 100644 --- a/ui/src/pages/Cluster/Detail/index.tsx +++ b/ui/src/pages/Cluster/Detail/index.tsx @@ -91,7 +91,7 @@ const ClusterDetail: React.FC = () => { defaultMessage: '连接集群', }), key: 'connection', - link: `/cluster/${clusterId}/connection`, + link: `/cluster/${ns}/${name}/${clusterName}/connection`, }, ]; diff --git a/ui/src/pages/Tenant/Detail/index.tsx b/ui/src/pages/Tenant/Detail/index.tsx index a66dc0989..801c6c9e9 100644 --- a/ui/src/pages/Tenant/Detail/index.tsx +++ b/ui/src/pages/Tenant/Detail/index.tsx @@ -89,7 +89,7 @@ const TenantDetail: React.FC = () => { defaultMessage: '连接租户', }), key: 'connection', - link: `/tenant/${tenantId}/connection`, + link: `/tenant/${ns}/${name}/${tenantName}/connection`, }, ];