feat: 修改翻译

This commit is contained in:
2025-08-10 09:28:39 -07:00
parent c8bf1d484e
commit 130a2506ac
25 changed files with 218 additions and 141 deletions
@@ -7,8 +7,7 @@ import { SidebarLeft } from './sidebar-left';
export default async function DashboardLayout({ children }: { children: React.ReactNode }) {
const cookieStore = await cookies();
const defaultOpen = cookieStore.get('sidebar:state')?.value === 'true';
const defaultOpen = cookieStore.get('sidebar:state')?.value !== 'false'; // 默认 true,除非明确为 'false'
return (
<SidebarProvider className='' defaultOpen={defaultOpen}>
<SidebarLeft className='w-[288px] border-r-0 bg-transparent lg:flex' />