Skip to content

Commit

Permalink
fix custom
Browse files Browse the repository at this point in the history
  • Loading branch information
zjy365 committed Sep 12, 2024
1 parent 8412507 commit 539d266
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -803,7 +803,7 @@ const Form = ({
openPublicDomain: false,
publicDomain: '',
customDomain: '',
domain: SEALOS_USER_DOMAIN[0] ?? SEALOS_DOMAIN
domain: SEALOS_DOMAIN
})
}
>
Expand All @@ -828,7 +828,7 @@ const Form = ({
protocol: network.protocol || 'HTTP',
openPublicDomain: e.target.checked,
publicDomain: network.publicDomain || nanoid(),
domain: network.domain || SEALOS_USER_DOMAIN[0] || SEALOS_DOMAIN
domain: network.domain || SEALOS_DOMAIN
});
}}
/>
Expand Down
4 changes: 3 additions & 1 deletion frontend/providers/applaunchpad/src/utils/adapt.ts
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,9 @@ export const adaptAppDetail = async (configs: DeployKindsType[]): Promise<AppDet
? ingress?.metadata?.labels?.[publicDomainKey] || ''
: domain.split('.')[0],
customDomain: isCustomDomain ? domain : '',
domain: domain.split('.').slice(1).join('.') || SEALOS_DOMAIN
domain: isCustomDomain
? SEALOS_DOMAIN
: domain.split('.').slice(1).join('.') || SEALOS_DOMAIN
};
}) || [],
hpa: deployKindsMap.HorizontalPodAutoscaler?.spec
Expand Down

0 comments on commit 539d266

Please sign in to comment.