Fix the remote url is undefined (#338)

This commit is contained in:
Louis Lam 2024-01-04 00:43:39 +08:00 committed by GitHub
parent f8ad8c45fd
commit ec6bdea711
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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