优化资源调用,减少页面大小
This commit is contained in:
@@ -2,15 +2,9 @@
|
||||
import {ReactNode} from 'react'
|
||||
import {Metadata} from 'next'
|
||||
import './globals.css'
|
||||
import localFont from 'next/font/local'
|
||||
import {Toaster} from '@/components/ui/sonner'
|
||||
import StoresProvider from '@/components/stores-provider'
|
||||
import Effects from '@/app/effects'
|
||||
import {getProfile} from '@/actions/auth'
|
||||
|
||||
const font = localFont({
|
||||
src: './NotoSansSC-VariableFont_wght.ttf',
|
||||
})
|
||||
|
||||
export async function generateMetadata(): Promise<Metadata> {
|
||||
return {
|
||||
@@ -25,7 +19,7 @@ export default async function RootLayout({
|
||||
}>) {
|
||||
return (
|
||||
<html lang="zh-CN">
|
||||
<body className={`${font.className}`}>
|
||||
<body>
|
||||
<StoresProvider>
|
||||
<Effects>{children}</Effects>
|
||||
</StoresProvider>
|
||||
|
||||
Reference in New Issue
Block a user