feat:Community 组件 (2个文件,8个console)
- EventDetailModal.js - 2个
- InvestmentCalendar.js - 6个
EventDetail 组件 (5个文件,54个console)
- TransmissionChainAnalysis.js - 43个 ⚠️ 最复杂
- RelatedConcepts.js - 14个
- LimitAnalyse.js - 5个 (保留2个toast)
- RelatedStocks.js - 3个 (保留4个toast)
- HistoricalEvents.js - 1个
StockChart 组件 (1个文件,4个console)
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
import React, { useState, useEffect } from 'react';
|
||||
import { Card, Tag, Space, Spin, Empty, Button } from 'antd';
|
||||
import { FireOutlined, RightOutlined } from '@ant-design/icons';
|
||||
import { logger } from '../../../utils/logger';
|
||||
|
||||
const API_BASE_URL = process.env.NODE_ENV === 'production'
|
||||
? '/concept-api'
|
||||
@@ -44,9 +45,12 @@ const PopularKeywords = ({ onKeywordClick }) => {
|
||||
concept_id: item.concept_id
|
||||
}));
|
||||
setKeywords(formattedData);
|
||||
logger.debug('PopularKeywords', '热门概念加载成功', {
|
||||
count: formattedData.length
|
||||
});
|
||||
}
|
||||
} catch (error) {
|
||||
console.error('Failed to load popular concepts:', error);
|
||||
logger.error('PopularKeywords', 'loadPopularConcepts', error);
|
||||
setKeywords([]);
|
||||
} finally {
|
||||
setLoading(false);
|
||||
|
||||
Reference in New Issue
Block a user