next.js搭建路由01

This commit is contained in:
2025-10-20 16:19:41 +08:00
parent 727ec66189
commit 5c783c73e1
333 changed files with 7568 additions and 7091 deletions

18
crop-x/src/app/layout.tsx Normal file
View File

@@ -0,0 +1,18 @@
import {Navbar} from "../components/layouts/Navbar"
import '@/styles/globals.css'
export default function DashboardLayout({
children,
}: {
children: React.ReactNode
}) {
return (
<html lang="en">
<body>
<Navbar></Navbar>
{/* 布局 UI */}
{/* 将 children 放在您希望渲染页面或嵌套布局的位置 */}
<main>{children}</main>
</body>
</html>
)
}