Commit 4ea82dbf by Liu

fix:历史记录分割线展示时机&&重新点击时机

parent 359f311b
......@@ -889,9 +889,10 @@ export const TacticsChat: React.FC = () => {
: `${record.role}-${record.question || record.answerList?.[0]?.answer || ''}-${index}`
return (
<React.Fragment key={uniqueKey}>
{historyDividerIndex !== null && index === historyDividerIndex && (
{historyDividerIndex !== null && index + 1 === historyDividerIndex && (
<div className="flex items-center gap-[12px] my-[16px] text-[#B2B8C1] text-[12px]">
<div className="flex-1 h-px bg-[#E4E7EC]" />
<span>以上为历史分析数据</span>
<span>{historyDividerTime || formatCurrentTime()}</span>
<div className="flex-1 h-px bg-[#E4E7EC]" />
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment