import { lazy, Suspense } from 'react'; import { Navigate, Route, Routes } from 'react-router-dom'; import { AppShell } from '@/components/layout/AppShell'; import { TimelinePage } from '@/pages/timeline/TimelinePage'; // 非首屏页面懒加载:echarts 等重依赖仅在进入对应路由时拉取 const RecordsPage = lazy(() => import('@/pages/records/RecordsPage').then(m => ({ default: m.RecordsPage }))); const DashboardPage = lazy(() => import('@/pages/dashboard/DashboardPage').then(m => ({ default: m.DashboardPage }))); const GradesPage = lazy(() => import('@/pages/grades/GradesPage').then(m => ({ default: m.GradesPage }))); const TypesPage = lazy(() => import('@/pages/types/TypesPage').then(m => ({ default: m.TypesPage }))); const TaxonomyPage = lazy(() => import('@/pages/taxonomy/TaxonomyPage').then(m => ({ default: m.TaxonomyPage }))); function PageLoading() { return