bugfix:修复警告错误

This commit is contained in:
zdl
2025-10-27 22:29:53 +08:00
parent 657c446594
commit 95c1eaf97b

View File

@@ -138,9 +138,9 @@ const PopularKeywords = ({ onKeywordClick, keywords: propKeywords }) => {
</span> </span>
{/* 所有标签 */} {/* 所有标签 */}
{keywords.map((item) => ( {keywords.map((item, index) => (
<Tag <Tag
key={item.concept_id} key={item.concept_id || `keyword-${index}`}
color={getTagColor(item.change_pct)} color={getTagColor(item.change_pct)}
style={{ style={{
cursor: 'pointer', cursor: 'pointer',