Fix the remote url is undefined

This commit is contained in:
Louis Lam 2024-01-04 00:41:12 +08:00
parent f8ad8c45fd
commit eb5183ab12

View file

@ -275,7 +275,7 @@ export default defineComponent({
methods: { methods: {
parsePort(port) { parsePort(port) {
if (this.stack.endpoint) { if (this.stack.endpoint) {
return parseDockerPort(port, this.stack.endpoint.hostname); return parseDockerPort(port, this.stack.primaryHostname);
} else { } else {
let hostname = this.$root.info.primaryHostname || location.hostname; let hostname = this.$root.info.primaryHostname || location.hostname;
return parseDockerPort(port, hostname); return parseDockerPort(port, hostname);