fix: 修复 StockDetailPanel 导入路径错误
问题: - StockDetailPanel.js 引用了不存在的相对路径 - ./hooks/... 和 ./components 找不到文件 - 导致编译失败: Module not found 根因: - hooks 和 components 实际在 ./StockDetailPanel/ 子目录下 - 但导入路径缺少 StockDetailPanel/ 前缀 修复: - ✅ ./hooks/useEventStocks → ./StockDetailPanel/hooks/useEventStocks - ✅ ./hooks/useWatchlist → ./StockDetailPanel/hooks/useWatchlist - ✅ ./hooks/useStockMonitoring → ./StockDetailPanel/hooks/useStockMonitoring - ✅ ./components → ./StockDetailPanel/components 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -1,21 +0,0 @@
|
|||||||
{
|
|
||||||
"permissions": {
|
|
||||||
"allow": [
|
|
||||||
"Read(//Users/qiye/**)",
|
|
||||||
"Bash(npm run lint:check)",
|
|
||||||
"Bash(npm run build)",
|
|
||||||
"Bash(chmod +x /Users/qiye/Desktop/jzqy/vf_react/scripts/*.sh)",
|
|
||||||
"Bash(node scripts/parseIndustryCSV.js)",
|
|
||||||
"Bash(cat:*)",
|
|
||||||
"Bash(npm cache clean --force)",
|
|
||||||
"Bash(npm install)",
|
|
||||||
"Bash(npm run start:mock)",
|
|
||||||
"Bash(npm install fsevents@latest --save-optional --force)",
|
|
||||||
"Bash(python -m py_compile:*)",
|
|
||||||
"Bash(ps -p 20502,53360 -o pid,command)",
|
|
||||||
"Bash(mkdir -p /Users/qiye/Desktop/jzqy/vf_react/docs/graduation)"
|
|
||||||
],
|
|
||||||
"deny": [],
|
|
||||||
"ask": []
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -12,12 +12,12 @@ import { getApiBase } from '../../../utils/apiConfig';
|
|||||||
|
|
||||||
// Custom Hooks
|
// Custom Hooks
|
||||||
import { useSubscription } from '../../../hooks/useSubscription';
|
import { useSubscription } from '../../../hooks/useSubscription';
|
||||||
import { useEventStocks } from './hooks/useEventStocks';
|
import { useEventStocks } from './StockDetailPanel/hooks/useEventStocks';
|
||||||
import { useWatchlist } from './hooks/useWatchlist';
|
import { useWatchlist } from './StockDetailPanel/hooks/useWatchlist';
|
||||||
import { useStockMonitoring } from './hooks/useStockMonitoring';
|
import { useStockMonitoring } from './StockDetailPanel/hooks/useStockMonitoring';
|
||||||
|
|
||||||
// Components
|
// Components
|
||||||
import { RelatedStocksTab, LockedContent } from './components';
|
import { RelatedStocksTab, LockedContent } from './StockDetailPanel/components';
|
||||||
import RelatedConcepts from '../../EventDetail/components/RelatedConcepts';
|
import RelatedConcepts from '../../EventDetail/components/RelatedConcepts';
|
||||||
import HistoricalEvents from '../../EventDetail/components/HistoricalEvents';
|
import HistoricalEvents from '../../EventDetail/components/HistoricalEvents';
|
||||||
import TransmissionChainAnalysis from '../../EventDetail/components/TransmissionChainAnalysis';
|
import TransmissionChainAnalysis from '../../EventDetail/components/TransmissionChainAnalysis';
|
||||||
|
|||||||
Reference in New Issue
Block a user