From 456748b01e3fc7387123896c5fd705c5abe71f48 Mon Sep 17 00:00:00 2001 From: cillin Date: Mon, 23 Mar 2026 18:12:32 +0800 Subject: [PATCH] =?UTF-8?q?fix(frontend):=20=E4=BF=AE=E5=A4=8D=20now=20?= =?UTF-8?q?=E5=8F=98=E9=87=8F=E9=87=8D=E5=A4=8D=E5=A3=B0=E6=98=8E=E5=AF=BC?= =?UTF-8?q?=E8=87=B4=E7=9A=84=E7=A9=BA=E7=99=BD=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 从 runtimeStore 移除 now(应从 uiStore 获取) - 修复重复声明错误 Co-Authored-By: Claude Opus 4.6 --- frontend/src/App.jsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index 0ad2379..766eb3a 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -76,10 +76,10 @@ function ViewLoadingFallback({ label = '加载中...' }) { export default function LiveTradingApp() { // Connection & system state - from runtimeStore - const { isConnected, setIsConnected, connectionStatus, setConnectionStatus, systemStatus, setSystemStatus, currentDate, setCurrentDate, progress, setProgress, now, setNow } = useRuntimeStore(); + const { isConnected, setIsConnected, connectionStatus, setConnectionStatus, systemStatus, setSystemStatus, currentDate, setCurrentDate, progress, setProgress } = useRuntimeStore(); // View toggle: 'traders' | 'room' | 'explain' | 'chart' | 'statistics' | 'runtime' - const { currentView, setCurrentView, chartTab, setChartTab, isInitialAnimating, setIsInitialAnimating, lastUpdate, setLastUpdate, isUpdating, setIsUpdating } = useUIStore(); + const { currentView, setCurrentView, chartTab, setChartTab, isInitialAnimating, setIsInitialAnimating, lastUpdate, setLastUpdate, isUpdating, setIsUpdating, now, setNow } = useUIStore(); // Chart data - from portfolioStore const { portfolioData, setPortfolioData, holdings, setHoldings, trades, setTrades, stats, setStats, leaderboard, setLeaderboard } = usePortfolioStore();