From 3d730547afdbce8a9e98cfd4ab788ae1276f57cc Mon Sep 17 00:00:00 2001 From: maggieyyy <61950669+maggieyyy@users.noreply.github.com> Date: Tue, 22 Oct 2024 10:28:14 +0800 Subject: [PATCH] fix: Modify peer address to use array format --- frontend/packages/core/src/const/partitions/types.ts | 2 +- .../core/src/pages/partitions/PartitionInsideCluster.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/frontend/packages/core/src/const/partitions/types.ts b/frontend/packages/core/src/const/partitions/types.ts index fb721e33..2e7cc222 100644 --- a/frontend/packages/core/src/const/partitions/types.ts +++ b/frontend/packages/core/src/const/partitions/types.ts @@ -67,7 +67,7 @@ export type PartitionClusterNodeTableListItem = { name: string; managerAddress:string[]; serviceAddress:string[]; - peerAddress:string; + peerAddress:string[]; status:0|1; }; diff --git a/frontend/packages/core/src/pages/partitions/PartitionInsideCluster.tsx b/frontend/packages/core/src/pages/partitions/PartitionInsideCluster.tsx index 00280bd4..8fc68d8c 100644 --- a/frontend/packages/core/src/pages/partitions/PartitionInsideCluster.tsx +++ b/frontend/packages/core/src/pages/partitions/PartitionInsideCluster.tsx @@ -103,8 +103,8 @@ export function ClusterConfigPreview (x:PartitionClusterNodeTableListItem){

{m}

))} {$t('服务地址')}:{x.serviceAddress.map(m=>(

{m}

))}
- {$t('同步地址')}: -

{x.peerAddress}

+ {$t('同步地址')}:{x.peerAddress.map(m=>( +

{m}

))}
} export default PartitionInsideCluster \ No newline at end of file