fix cite visibility (#6153)

This commit is contained in:
heheer 2025-12-26 15:26:06 +08:00 committed by GitHub
parent 4fbe27f2df
commit bb8d3604d0
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 1 deletions

View File

@ -58,7 +58,7 @@ const ResponseTags = ({
} = useMemo(() => {
return {
...addStatisticalDataToHistoryItem(historyItem),
...(isShowCite
...(!isShowCite
? {
totalQuoteList: []
}

View File

@ -32,6 +32,7 @@ const PlaygroundVisibilityConfig = ({ appId }: { appId: string }) => {
const showCite = watch('showCite');
const showFullText = watch('showFullText');
const canDownloadSource = watch('canDownloadSource');
const showRunningStatus = watch('showRunningStatus');
const playgroundLink = useMemo(() => {
if (typeof window !== 'undefined') {
@ -114,6 +115,7 @@ const PlaygroundVisibilityConfig = ({ appId }: { appId: string }) => {
{...register('showRunningStatus', {
onChange: autoSave
})}
isChecked={showRunningStatus}
/>
</Flex>
<Flex>