This commit is contained in:
parent
672e59b1d7
commit
07a52cd580
|
|
@ -76,7 +76,7 @@ export default async function RootLayout({
|
|||
const pathname = usePathname(); // 获取当前页面路径
|
||||
|
||||
// 如果路径是某些特定页面(例如 /auth),则不渲染 Header
|
||||
const showHeader = !pathname.startsWith('/auth');
|
||||
//const showHeader = !pathname.startsWith('/auth');
|
||||
|
||||
return (
|
||||
<html lang={locale} dir={dir(locale)} suppressHydrationWarning>
|
||||
|
|
|
|||
Loading…
Reference in New Issue