feat: 路由改造

This commit is contained in:
zdl
2025-10-17 18:59:00 +08:00
parent 02bf1ea709
commit bae4d25e24
15 changed files with 496 additions and 227 deletions

View File

@@ -45,8 +45,7 @@ import MarginTrading from './components/MarginTrading';
// 导入现有的高质量组件
import LineChart from '../../components/Charts/LineChart';
// 导入导航栏组件
import HomeNavbar from '../../components/Navbars/HomeNavbar';
// 导航栏已由 MainLayout 提供,无需在此导
// 模拟盘账户管理 Hook
import { useTradingAccount } from './hooks/useTradingAccount';
@@ -221,9 +220,7 @@ export default function TradingSimulation() {
// ========== 5. 主要渲染逻辑 ==========
return (
<Box minH="100vh" bg={bgColor}>
{/* 导航栏 */}
<HomeNavbar />
{/* 导航栏已由 MainLayout 提供 */}
<Container maxW="7xl" py={8}>
{!isAuthenticated ? (
<Alert status="warning">