diff --git a/frontend/src/app/chat/page.tsx b/frontend/src/app/chat/page.tsx index cdfc2d72..6f57232b 100644 --- a/frontend/src/app/chat/page.tsx +++ b/frontend/src/app/chat/page.tsx @@ -1208,8 +1208,8 @@ export default function ChatPage() { : "输入问题、查看流式回答和引用来源,历史会话会自动沉淀。"}
- {chatHighlights.map((item) => ( - + {chatHighlights.map((item, index) => ( + {item} ))} @@ -1221,8 +1221,8 @@ export default function ChatPage() { {reviewContext ? "上下文已就绪" : "问答节奏"} @@ -1241,16 +1241,16 @@ export default function ChatPage() { {focusPanelDescription ? {focusPanelDescription} : null}
- {focusPanelItems.map((item) => ( -
{item}
+ {focusPanelItems.map((item, index) => ( +
{item}
))}
) : null} {contextCards.length ? (
- {contextCards.map((item) => ( -
+ {contextCards.map((item, index) => ( +
{item.label} {item.value}
@@ -1319,10 +1319,10 @@ export default function ChatPage() { 发送快捷键:Ctrl/⌘ + Enter {followupSuggestions.length ? (
- {followupSuggestions.map((item) => ( + {followupSuggestions.map((item, index) => (
- {reviewOverviewItems.map((item) => ( -
+ {reviewOverviewItems.map((item, index) => ( +
{item.label} {item.value}
@@ -1381,8 +1381,8 @@ export default function ChatPage() { {summarySection.title}
    - {summarySection.items.map((item) => ( -
  • {item}
  • + {summarySection.items.map((item, index) => ( +
  • {item}
  • ))}
@@ -1395,8 +1395,8 @@ export default function ChatPage() { {checklistSection.title}
@@ -1411,8 +1411,8 @@ export default function ChatPage() {
{reviewActionCards.length ? (
- {reviewActionCards.map((item) => ( -
+ {reviewActionCards.map((item, index) => ( +
{buildActionCardTitle(item)}

{buildActionCardDescription(item)}

@@ -1429,15 +1429,15 @@ export default function ChatPage() { {otherSections.length ? (
- {otherSections.map((section) => ( -
+ {otherSections.map((section, sectionIndex) => ( +
Section {section.title}
    - {section.items.map((item) => ( -
  • {item}
  • + {section.items.map((item, itemIndex) => ( +
  • {item}
  • ))}
@@ -1496,10 +1496,10 @@ export default function ChatPage() { {sourcePanelMeta.panel.description} {sourceStatusText} - {sourcePanelMeta.items.map((item) => { + {sourcePanelMeta.items.map((item, index) => { const badge = buildBadgeState(item, reviewContext); return ( -
+
{item.title}