2
0
mirror of https://github.com/acepanel/panel.git synced 2026-02-04 04:22:33 +08:00

fix: 容器端口映射显示相反,close #788

This commit is contained in:
2025-05-31 15:42:40 +08:00
parent 1459b287fa
commit 447b0332e3

View File

@@ -69,8 +69,12 @@ const columns: any = [
default: () =>
row.ports.map((port: any) =>
h(NTag, null, {
default: () =>
`${port.host ? port.host + ':' : ''}${port.container_start}->${port.host_start}/${port.protocol}`
default: () => {
if (port.container_start == port.container_end) {
return `${port.host ? port.host + ':' : ''}${port.host_start}->${port.container_start}/${port.protocol}`
}
return `${port.host ? port.host + ':' : ''}${port.host_start}-${port.host_end}->${port.container_start}-${port.container_end}/${port.protocol}`
}
})
)
})