diff --git a/src/views/Community/components/HeroPanel.js b/src/views/Community/components/HeroPanel.js index c30352c4..eb0a8cc4 100644 --- a/src/views/Community/components/HeroPanel.js +++ b/src/views/Community/components/HeroPanel.js @@ -469,13 +469,13 @@ const FlowingConcepts = () => { const row3 = concepts.slice(20, 30); // 渲染单个概念卡片 - const renderConceptCard = (concept, globalIdx) => { + const renderConceptCard = (concept, globalIdx, uniqueIdx) => { const colors = getColor(concept.change_pct); const isActive = hoveredIdx === globalIdx; return ( { > {/* 复制两份实现无缝滚动 */} {[...items, ...items].map((concept, idx) => - renderConceptCard(concept, startIdx + (idx % items.length)) + renderConceptCard(concept, startIdx + (idx % items.length), idx) )}