feat(layout): 添加左侧导航栏

包含与我相关、产品、项目、版本主导航和成员管理入口,路由高亮当前页面。

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Script Generator
2026-06-08 12:28:14 +08:00
parent 1468c314e9
commit 5bfa0811db
4 changed files with 95 additions and 6 deletions

View File

@@ -1,5 +1,6 @@
import './globals.css';
import type { Metadata } from 'next';
import { Sidebar } from '@/components/layout/Sidebar';
export const metadata: Metadata = {
title: 'FTB 项目管理',
@@ -13,7 +14,10 @@ export default function RootLayout({
}) {
return (
<html lang="zh-CN">
<body>{children}</body>
<body className="flex h-screen overflow-hidden bg-gray-50">
<Sidebar />
<main className="flex-1 overflow-y-auto">{children}</main>
</body>
</html>
);
}