chore: worker ip

This commit is contained in:
jialin
2025-12-18 14:06:32 +08:00
parent e6c12d81ea
commit e83bff6923
6 changed files with 26 additions and 8 deletions
+1
View File
@@ -67,6 +67,7 @@ export interface ListItem {
cluster_id: number;
state_message: string;
ssh_key_id: string;
advertise_address: string;
provision_progress: string;
maintenance: {
enabled: boolean;
@@ -279,9 +279,14 @@ const useWorkerColumns = ({
{
title: 'IP',
dataIndex: 'ip',
render: (text: string) => (
render: (text: string, record) => (
<AutoTooltip ghost maxWidth={240}>
{text}
{record.advertise_address || text}
{record.advertise_address
? ` (${intl.formatMessage({ id: 'clusters.table.ip.external' })})`
: record.ip
? ` (${intl.formatMessage({ id: 'clusters.table.ip.internal' })})`
: ''}
</AutoTooltip>
)
},