diff --git a/projects/app/src/pageComponents/app/detail/Publish/Wecom/index.tsx b/projects/app/src/pageComponents/app/detail/Publish/Wecom/index.tsx index 381718d46..1f8015523 100644 --- a/projects/app/src/pageComponents/app/detail/Publish/Wecom/index.tsx +++ b/projects/app/src/pageComponents/app/detail/Publish/Wecom/index.tsx @@ -50,8 +50,7 @@ const Wecom = ({ appId }: { appId: string }) => { loading: isFetching, runAsync: refetchShareChatList } = useRequest2(() => getShareChatList({ appId, type: PublishChannelEnum.wecom }), { - manual: false, - refreshOnWindowFocus: true + manual: false }); const { @@ -63,7 +62,8 @@ const Wecom = ({ appId }: { appId: string }) => { const [showShareLink, setShowShareLink] = useState(null); const { data: customDomains = [] } = useRequest2(listCustomDomain, { - manual: false + manual: false, + refreshOnWindowFocus: true }); return ( @@ -247,26 +247,27 @@ const Wecom = ({ appId }: { appId: string }) => { )} {shareChatList.length === 0 && !isFetching && ( 0 && { - text: ( - - ) - }} - /> - ) - })} - > + {...(feConfigs.customDomain?.enable && customDomains.length > 0 + ? { text: '' } + : { + text: ( + + ) + }} + /> + ) + })} + /> )} {showShareLinkModalOpen && (