mirror of
https://github.com/labring/FastGPT.git
synced 2025-12-25 20:02:47 +00:00
empty tip
This commit is contained in:
parent
6f26305a20
commit
0dd8117726
|
|
@ -50,8 +50,7 @@ const Wecom = ({ appId }: { appId: string }) => {
|
|||
loading: isFetching,
|
||||
runAsync: refetchShareChatList
|
||||
} = useRequest2(() => getShareChatList<WecomAppType>({ appId, type: PublishChannelEnum.wecom }), {
|
||||
manual: false,
|
||||
refreshOnWindowFocus: true
|
||||
manual: false
|
||||
});
|
||||
|
||||
const {
|
||||
|
|
@ -63,7 +62,8 @@ const Wecom = ({ appId }: { appId: string }) => {
|
|||
const [showShareLink, setShowShareLink] = useState<string | null>(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 && (
|
||||
<EmptyTip
|
||||
{...(feConfigs.customDomain?.enable &&
|
||||
customDomains.length > 0 && {
|
||||
text: (
|
||||
<Trans
|
||||
i18nKey="app:publish_channel.wecom.empty"
|
||||
components={{
|
||||
a: (
|
||||
<Link
|
||||
color="primary.600"
|
||||
key="link"
|
||||
href="/account/customDomain"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
/>
|
||||
)
|
||||
}}
|
||||
/>
|
||||
)
|
||||
})}
|
||||
></EmptyTip>
|
||||
{...(feConfigs.customDomain?.enable && customDomains.length > 0
|
||||
? { text: '' }
|
||||
: {
|
||||
text: (
|
||||
<Trans
|
||||
i18nKey="app:publish_channel.wecom.empty"
|
||||
components={{
|
||||
a: (
|
||||
<Link
|
||||
color="primary.600"
|
||||
key="link"
|
||||
href="/account/customDomain"
|
||||
target="_blank"
|
||||
rel="noopener noreferrer"
|
||||
/>
|
||||
)
|
||||
}}
|
||||
/>
|
||||
)
|
||||
})}
|
||||
/>
|
||||
)}
|
||||
<Loading loading={isFetching} fixed={false} />
|
||||
{showShareLinkModalOpen && (
|
||||
|
|
|
|||
Loading…
Reference in New Issue