From 49880e785f75da5341b2a54a81a149cfee4f782a Mon Sep 17 00:00:00 2001 From: fish Date: Fri, 3 Jul 2026 22:20:36 +0800 Subject: [PATCH] =?UTF-8?q?=E7=B2=BE=E7=AE=80=E5=B7=A6=E4=BE=A7=E8=8F=9C?= =?UTF-8?q?=E5=8D=95=E4=BB=85=E4=BF=9D=E7=95=99=E7=9C=8B=E6=9D=BF=E5=92=8C?= =?UTF-8?q?=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/components/Layout.tsx | 38 ++++-------------------------- 1 file changed, 4 insertions(+), 34 deletions(-) diff --git a/frontend/src/components/Layout.tsx b/frontend/src/components/Layout.tsx index 3a4f44f..dc5f159 100644 --- a/frontend/src/components/Layout.tsx +++ b/frontend/src/components/Layout.tsx @@ -18,25 +18,13 @@ import { import { QK } from '@/lib/queryKeys' import { tierRank } from '@/lib/capability-labels' import { - Star, - ScanSearch, - History, - FileText, Settings, Key, Database, Timer, Loader2, LayoutDashboard, - Tags, - TrendingUp, - Flame, - BarChart3, Sparkles, - Layers3, - Landmark, - Cable, - RadioTower, CheckCircle2, } from 'lucide-react' import { Logo } from './Logo' @@ -58,19 +46,8 @@ const CORE_INDEXES = [ type CoreIndex = (typeof CORE_INDEXES)[number] const nav = [ - { to: '/', label: '看板', icon: LayoutDashboard }, - { to: '/watchlist', label: '自选', icon: Star }, - { to: '/screener', label: '策略', icon: ScanSearch }, - { to: '/backtest', label: '回测', icon: History }, - { to: '/limit-ladder', label: '连板梯队', icon: Flame }, - { to: '/concept-analysis', label: '概念分析', icon: Layers3 }, - { to: '/industry-analysis', label: '行业分析', icon: Landmark }, - { to: '/stock-analysis', label: '个股分析', icon: TrendingUp }, - { to: '/financials', label: '财务', icon: FileText }, - { to: '/indices', label: '指数', icon: BarChart3 }, - { to: '/trading', label: '交易', icon: Cable }, - { to: '/monitor', label: '监控中心', icon: RadioTower }, - { to: '/data', label: '数据', icon: Database }, + { to: '/', label: '看板', icon: LayoutDashboard }, + { to: '/data', label: '数据', icon: Database }, ] as const function fmtIndexValue(v: number | null | undefined) { @@ -258,11 +235,6 @@ export function Layout() { const { data: versionData } = useVersion() const { data: prefs } = usePreferences() const { data: quoteStatus } = useQuoteStatus() - const { data: analysisMenus } = useQuery({ - queryKey: QK.analysisMenus, - queryFn: api.analysisMenus, - }) - // 数据同步状态轮询: 有活跃 job 时「数据」菜单项显示转圈 const { data: pipelineJobs } = useQuery({ queryKey: QK.pipelineJobs, @@ -326,10 +298,8 @@ export function Layout() { if (alertsTotal != null) setAlertTotal(alertsTotal) }, [alertsTotal]) - // 合并内置页面 + 可见的扩展分析菜单 - const analysisNav = (analysisMenus?.items ?? []) - .filter(m => m.visible) - .map(m => ({ to: `/analysis/${m.id}`, label: m.label, icon: m.icon === 'tags' ? Tags : BarChart3 })) + // 当前仅开放看板和数据业务,扩展分析菜单暂不展示 + const analysisNav: { to: string; label: string; icon: typeof LayoutDashboard }[] = [] const allNav = [...nav, ...analysisNav] const savedOrder = prefs?.nav_order ?? []