修复了登录页面还存在顶部导航栏的问题
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import {Navbar} from "../components/layouts/Navbar"
|
||||
|
||||
import '@/styles/globals.css'
|
||||
export default function DashboardLayout({
|
||||
children,
|
||||
@@ -8,10 +8,9 @@ export default function DashboardLayout({
|
||||
return (
|
||||
<html lang="en">
|
||||
<body>
|
||||
<Navbar></Navbar>
|
||||
{/* 布局 UI */}
|
||||
{/* 将 children 放在您希望渲染页面或嵌套布局的位置 */}
|
||||
<main>{children}</main>
|
||||
{children}
|
||||
</body>
|
||||
</html>
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user