From 334a4b7e50dd97aeb66533ac14fe83e78115d68c Mon Sep 17 00:00:00 2001 From: zdl <3489966805@qq.com> Date: Mon, 8 Dec 2025 13:24:35 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20Community=20?= =?UTF-8?q?=E7=9B=AE=E5=BD=95=E8=BF=81=E7=A7=BB=E5=90=8E=E7=9A=84=E5=AF=BC?= =?UTF-8?q?=E5=85=A5=E8=B7=AF=E5=BE=84=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复 7 处导入路径问题: - EventHeaderInfo.js: StockChangeIndicators 和 EventFollowButton 路径 - klineDataCache.js: stockService 和 logger 路径别名 - EventDescriptionSection.js: professionalTheme 路径别名 - CollapsibleSection.js: professionalTheme 路径别名 - RelatedConceptsSection/index.js: logger 路径别名 - CompactMetaBar.js: EventFollowButton 路径 - EventDetailScrollPanel.js: DynamicNewsDetailPanel 路径 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude --- src/components/EventDetailPanel/CollapsibleSection.js | 2 +- src/components/EventDetailPanel/CompactMetaBar.js | 2 +- src/components/EventDetailPanel/EventDescriptionSection.js | 2 +- src/components/EventDetailPanel/EventHeaderInfo.js | 4 ++-- .../EventDetailPanel/RelatedConceptsSection/index.js | 2 +- src/utils/stock/klineDataCache.js | 6 +++--- .../components/DynamicNewsCard/EventDetailScrollPanel.js | 2 +- 7 files changed, 10 insertions(+), 10 deletions(-) diff --git a/src/components/EventDetailPanel/CollapsibleSection.js b/src/components/EventDetailPanel/CollapsibleSection.js index beb8827d..289e2b80 100644 --- a/src/components/EventDetailPanel/CollapsibleSection.js +++ b/src/components/EventDetailPanel/CollapsibleSection.js @@ -8,7 +8,7 @@ import { useColorModeValue, } from '@chakra-ui/react'; import CollapsibleHeader from './CollapsibleHeader'; -import { PROFESSIONAL_COLORS } from '../../../../constants/professionalTheme'; +import { PROFESSIONAL_COLORS } from '@constants/professionalTheme'; /** * 通用可折叠区块组件 diff --git a/src/components/EventDetailPanel/CompactMetaBar.js b/src/components/EventDetailPanel/CompactMetaBar.js index 525355b5..d6570d6b 100644 --- a/src/components/EventDetailPanel/CompactMetaBar.js +++ b/src/components/EventDetailPanel/CompactMetaBar.js @@ -10,7 +10,7 @@ import { useColorModeValue, } from '@chakra-ui/react'; import { ViewIcon } from '@chakra-ui/icons'; -import EventFollowButton from '../EventCard/EventFollowButton'; +import EventFollowButton from '@views/Community/components/EventCard/EventFollowButton'; /** * 精简信息栏组件 diff --git a/src/components/EventDetailPanel/EventDescriptionSection.js b/src/components/EventDetailPanel/EventDescriptionSection.js index facfd0fd..7ede74dd 100644 --- a/src/components/EventDetailPanel/EventDescriptionSection.js +++ b/src/components/EventDetailPanel/EventDescriptionSection.js @@ -8,7 +8,7 @@ import { Text, useColorModeValue, } from '@chakra-ui/react'; -import { PROFESSIONAL_COLORS } from '../../../../constants/professionalTheme'; +import { PROFESSIONAL_COLORS } from '@constants/professionalTheme'; /** * 事件描述区组件 diff --git a/src/components/EventDetailPanel/EventHeaderInfo.js b/src/components/EventDetailPanel/EventHeaderInfo.js index 06bd12aa..45b277fc 100644 --- a/src/components/EventDetailPanel/EventHeaderInfo.js +++ b/src/components/EventDetailPanel/EventHeaderInfo.js @@ -14,8 +14,8 @@ import { } from '@chakra-ui/react'; import { ViewIcon } from '@chakra-ui/icons'; import dayjs from 'dayjs'; -import StockChangeIndicators from '../../../../components/StockChangeIndicators'; -import EventFollowButton from '../EventCard/EventFollowButton'; +import StockChangeIndicators from '../StockChangeIndicators'; +import EventFollowButton from '@views/Community/components/EventCard/EventFollowButton'; /** * 事件头部信息区组件 diff --git a/src/components/EventDetailPanel/RelatedConceptsSection/index.js b/src/components/EventDetailPanel/RelatedConceptsSection/index.js index 3beb40d5..f617634a 100644 --- a/src/components/EventDetailPanel/RelatedConceptsSection/index.js +++ b/src/components/EventDetailPanel/RelatedConceptsSection/index.js @@ -20,7 +20,7 @@ import dayjs from 'dayjs'; import SimpleConceptCard from './SimpleConceptCard'; import DetailedConceptCard from './DetailedConceptCard'; import TradingDateInfo from './TradingDateInfo'; -import { logger } from '../../../../../utils/logger'; +import { logger } from '@utils/logger'; /** * 相关概念区组件 diff --git a/src/utils/stock/klineDataCache.js b/src/utils/stock/klineDataCache.js index efa023ab..47f4d71e 100644 --- a/src/utils/stock/klineDataCache.js +++ b/src/utils/stock/klineDataCache.js @@ -1,7 +1,7 @@ -// src/views/Community/components/StockDetailPanel/utils/klineDataCache.js +// src/utils/stock/klineDataCache.js import dayjs from 'dayjs'; -import { stockService } from '../../../../../services/eventService'; -import { logger } from '../../../../../utils/logger'; +import { stockService } from '@services/eventService'; +import { logger } from '@utils/logger'; // ================= 全局缓存和请求管理 ================= export const klineDataCache = new Map(); // 缓存K线数据: key = `${code}|${date}|${chartType}` -> data diff --git a/src/views/Community/components/DynamicNewsCard/EventDetailScrollPanel.js b/src/views/Community/components/DynamicNewsCard/EventDetailScrollPanel.js index c531220f..18ec5413 100644 --- a/src/views/Community/components/DynamicNewsCard/EventDetailScrollPanel.js +++ b/src/views/Community/components/DynamicNewsCard/EventDetailScrollPanel.js @@ -3,7 +3,7 @@ import React from 'react'; import { Box, Center, VStack, Text } from '@chakra-ui/react'; -import DynamicNewsDetailPanel from '../DynamicNewsDetail'; +import DynamicNewsDetailPanel from '@components/EventDetailPanel'; /** * 事件详情滚动面板