fix: bug修复

This commit is contained in:
zdl
2025-12-09 15:16:02 +08:00
parent 90391729bb
commit 258708fca0
2 changed files with 11 additions and 4 deletions

View File

@@ -524,7 +524,9 @@ const InvestmentCalendar = () => {
{concepts && concepts.length > 0 ? (
concepts.slice(0, 3).map((concept, index) => (
<Tag key={index} icon={<TagsOutlined />}>
{Array.isArray(concept) ? concept[0] : concept}
{typeof concept === 'string'
? concept
: (concept?.concept || concept?.name || '未知')}
</Tag>
))
) : (
@@ -919,7 +921,7 @@ const InvestmentCalendar = () => {
<Table
dataSource={selectedStocks}
columns={stockColumns}
rowKey={(record) => record[0]}
rowKey={(record) => record.code}
size="middle"
pagination={false}
/>