From 592671b2df19df8c8929dd2f677305e7996f07d9 Mon Sep 17 00:00:00 2001 From: Rogee Date: Tue, 22 Sep 2026 16:49:26 +0800 Subject: [PATCH] =?UTF-8?q?style(web):=20=E9=A1=B5=E9=9D=A2=E5=86=85?= =?UTF-8?q?=E5=AE=B9=E5=8C=BA=E4=B8=8D=E5=86=8D=E9=87=8D=E5=A4=8D=E6=B8=B2?= =?UTF-8?q?=E6=9F=93=E6=A0=87=E9=A2=98=EF=BC=8C=E6=A0=87=E9=A2=98=E7=BB=9F?= =?UTF-8?q?=E4=B8=80=E7=94=B1=20TopNav=20=E5=91=88=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/layouts/index.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/web/src/layouts/index.tsx b/web/src/layouts/index.tsx index 4f14fa0..a9414d8 100644 --- a/web/src/layouts/index.tsx +++ b/web/src/layouts/index.tsx @@ -2,7 +2,7 @@ import { history, Outlet, useLocation } from '@umijs/max'; import { PageContainer, ProLayout } from '@ant-design/pro-components'; import { Dropdown } from 'antd'; import { LogoutOutlined } from '@ant-design/icons'; -import { pageMetadata, menu } from '@/utils/metadata'; +import { menu } from '@/utils/metadata'; // 菜单结构与 web.archived/src/app/Layout.jsx 完全一致(运营 / 资源 两组),页头标题规则对齐 pageMetadataRules。 // /login 独立页:不走 ProLayout(对齐归档版布局分支)。 @@ -11,7 +11,6 @@ import { pageMetadata, menu } from '@/utils/metadata'; export default function Layout() { const location = useLocation(); if (location.pathname === '/login') return ; - const metadata = pageMetadata(location.pathname); return ( - +