优化导航栏性能,完善导航栏弹出菜单的移动端适配;调整导航栏与 store 公共组件的所在目录结构

This commit is contained in:
2025-06-22 10:58:41 +08:00
parent b295fea52f
commit 483a33296a
24 changed files with 469 additions and 649 deletions

View File

@@ -4,7 +4,7 @@ import {Metadata} from 'next'
import './globals.css'
import localFont from 'next/font/local'
import {Toaster} from '@/components/ui/sonner'
import Stores from '@/app/stores'
import StoresProvider from '@/components/stores-provider'
import {getProfile} from '@/actions/auth'
import Effects from '@/app/effects'
@@ -29,11 +29,11 @@ export default async function RootLayout({
return (
<html lang="zh-CN">
<body className={`${font.className}`}>
<Stores user={user}>
<StoresProvider user={user}>
<Effects>
{children}
</Effects>
</Stores>
</StoresProvider>
<Toaster position="top-center" richColors expand/>
</body>
</html>