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:
@@ -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}`
|
||||
}
|
||||
})
|
||||
)
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user