This commit is contained in:
2026-06-17 16:16:40 +08:00
parent 965544a134
commit a7cd73bf5e
+19 -17
View File
@@ -261,23 +261,25 @@ const AdminLayout: React.FC = () => {
</div>
{/* Menu */}
<Menu
mode="inline"
selectedKeys={[activeKey]}
defaultOpenKeys={openKeys}
items={antMenuItems}
style={{
background: 'transparent',
border: 'none',
paddingTop: 8,
marginTop: 8,
}}
onClick={({ key }) => {
if (key.startsWith('group-')) return;
navigate(key);
}}
theme="light"
/>
<div style={{ overflowY: 'auto', maxHeight: 'calc(100vh - 120px)', paddingRight: 8 }}>
<Menu
mode="inline"
selectedKeys={[activeKey]}
defaultOpenKeys={openKeys}
items={antMenuItems}
style={{
background: 'transparent',
border: 'none',
paddingTop: 8,
marginTop: 8,
}}
onClick={({ key }) => {
if (key.startsWith('group-')) return;
navigate(key);
}}
theme="light"
/>
</div>
</Sider>