fix(bug): fix router

This commit is contained in:
zhangheng
2026-03-27 16:18:44 +08:00
parent 5cbdd259ab
commit 336adc766e
7 changed files with 153 additions and 23 deletions

View File

@@ -2,16 +2,16 @@ import AppLayout from "@/components/layout/AppLayout"
import { PathnameRecorder } from "@/components/layout/PathnameRecorder"
import { componentList, showList } from "@/components/layout/common"
async function getMenu() {
return [...componentList, ...showList]
}
// async function getMenu() {
// return [...componentList, ...showList]
// }
export default async function Layout({
children,
}: {
children: React.ReactNode
}) {
const menu = await getMenu()
const menu = [...componentList, ...showList]
return (
<AppLayout menu={menu}>
{children}