♻️ 使用 NextJS 重构 #1
@ -15,12 +15,14 @@ import "./globals.css";
|
||||
|
||||
import AppShell from "@/components/AppShell";
|
||||
|
||||
export const runtime = "edge";
|
||||
|
||||
export const metadata: Metadata = {
|
||||
title: {
|
||||
default: SITE_NAME,
|
||||
template: `${SITE_NAME} | %s`
|
||||
},
|
||||
description: SITE_DESCRIPTION,
|
||||
description: SITE_DESCRIPTION
|
||||
};
|
||||
|
||||
export default function RootLayout({ children }: Readonly<{
|
||||
|
@ -62,7 +62,7 @@ export function AppNavigation({ showClose, onClose }: {
|
||||
<Divider />
|
||||
<List>
|
||||
{NAVIGATION_ITEMS.map((item, idx) => {
|
||||
return item.divider ? <Divider /> : (
|
||||
return item.divider ? <Divider key={idx} /> : (
|
||||
<Link key={idx} href={item.link ?? "/"} passHref>
|
||||
<ListItemButton>
|
||||
<ListItemIcon>{item.icon}</ListItemIcon>
|
||||
|
Loading…
Reference in New Issue
Block a user