From bb8d3604d0bbd7b4ddfd15034735c273108e54c8 Mon Sep 17 00:00:00 2001 From: heheer Date: Fri, 26 Dec 2025 15:26:06 +0800 Subject: [PATCH] fix cite visibility (#6153) --- .../core/chat/ChatContainer/ChatBox/components/ResponseTags.tsx | 2 +- .../src/pageComponents/app/detail/Publish/Playground/index.tsx | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/projects/app/src/components/core/chat/ChatContainer/ChatBox/components/ResponseTags.tsx b/projects/app/src/components/core/chat/ChatContainer/ChatBox/components/ResponseTags.tsx index 868f05bc06..61528e00fd 100644 --- a/projects/app/src/components/core/chat/ChatContainer/ChatBox/components/ResponseTags.tsx +++ b/projects/app/src/components/core/chat/ChatContainer/ChatBox/components/ResponseTags.tsx @@ -58,7 +58,7 @@ const ResponseTags = ({ } = useMemo(() => { return { ...addStatisticalDataToHistoryItem(historyItem), - ...(isShowCite + ...(!isShowCite ? { totalQuoteList: [] } diff --git a/projects/app/src/pageComponents/app/detail/Publish/Playground/index.tsx b/projects/app/src/pageComponents/app/detail/Publish/Playground/index.tsx index 88d7a35112..69d59106e5 100644 --- a/projects/app/src/pageComponents/app/detail/Publish/Playground/index.tsx +++ b/projects/app/src/pageComponents/app/detail/Publish/Playground/index.tsx @@ -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} />