chore: 以本地为准,强制同步全部内容

This commit is contained in:
卡若
2026-01-31 12:07:46 +08:00
parent ce0a716d02
commit b4aa620c93
44 changed files with 7140 additions and 314 deletions

View File

@@ -4,10 +4,12 @@ import type React from "react"
import "./globals.css"
import { Inter } from "next/font/google"
import { useState, useEffect } from "react"
import { usePathname } from "next/navigation"
import Sidebar from "./components/Sidebar"
import MobileHeader from "./components/MobileHeader"
import MobileSidebar from "./components/MobileSidebar"
import BottomNav from "./components/BottomNav"
import { Toaster } from "@/components/ui/toaster"
const inter = Inter({ subsets: ["latin"] })
@@ -16,8 +18,10 @@ export default function ClientLayout({
}: {
children: React.ReactNode
}) {
const pathname = usePathname()
const [isMobile, setIsMobile] = useState(false)
const [sidebarOpen, setSidebarOpen] = useState(false)
const isLoginPage = pathname === "/login"
useEffect(() => {
const checkMobile = () => {
@@ -30,6 +34,21 @@ export default function ClientLayout({
return () => window.removeEventListener("resize", checkMobile)
}, [])
if (isLoginPage) {
return (
<html lang="zh-CN">
<head>
<title> - </title>
<meta name="viewport" content="width=device-width, initial-scale=1, viewport-fit=cover" />
</head>
<body className={inter.className}>
{children}
<Toaster />
</body>
</html>
)
}
return (
<html lang="zh-CN">
<head>
@@ -65,6 +84,8 @@ export default function ClientLayout({
{/* 移动端底部导航 */}
{isMobile && <BottomNav />}
<Toaster />
</body>
</html>
)