diff --git a/frontend/src/views/container/container/operate/index.vue b/frontend/src/views/container/container/operate/index.vue index 7960916ae238..d26585c8ac41 100644 --- a/frontend/src/views/container/container/operate/index.vue +++ b/frontend/src/views/container/container/operate/index.vue @@ -549,6 +549,7 @@ const checkPortValid = () => { } port.hostPort = port.host.substring(port.host.lastIndexOf(':') + 1); } else { + port.hostIP = ''; port.hostPort = port.host; } if (port.hostPort.indexOf('-') !== -1) {