修复了登录页面还存在顶部导航栏的问题
This commit is contained in:
16
crop-x/src/app/(app)/layout.tsx
Normal file
16
crop-x/src/app/(app)/layout.tsx
Normal file
@@ -0,0 +1,16 @@
|
||||
import {Navbar} from "@/components/layouts/Navbar"
|
||||
import '@/styles/globals.css'
|
||||
export default function DashboardLayout({
|
||||
children,
|
||||
}: {
|
||||
children: React.ReactNode
|
||||
}) {
|
||||
return (
|
||||
<div>
|
||||
<Navbar></Navbar>
|
||||
{/* 布局 UI */}
|
||||
{/* 将 children 放在您希望渲染页面或嵌套布局的位置 */}
|
||||
<main>{children}</main>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user