diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 7170785..dae9ca6 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -1,10 +1,4 @@ -"use client" -// export const metadata = { -// title: "CS工具箱", -// description: "Generated by Next.js", -// icons: ["/favicon.ico"], -// } - +// "use client" import "./globals.css" import Providers from "./providers" @@ -15,7 +9,7 @@ export default function RootLayout({ }) { return ( - + {children} diff --git a/src/app/page.tsx b/src/app/page.tsx index 76c1c91..9c09926 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -1,5 +1,6 @@ "use client" +import Nav from "@/components/window/Nav" import { Button } from "@heroui/react" // import { open } from "@tauri-apps/plugin-dialog" import { useRouter } from "next/navigation" @@ -18,30 +19,31 @@ const Home = () => { // setFile(filePath?.join("\n") || " ") // } return ( -
-

- CS 工具箱 -

- - {/* -

{file}

*/} -
+

CS 工具箱

+ + {/* +

{file}

*/} + + ) } diff --git a/src/app/prepare/layout.tsx b/src/app/prepare/layout.tsx index caeaf30..5b62d6d 100644 --- a/src/app/prepare/layout.tsx +++ b/src/app/prepare/layout.tsx @@ -1,8 +1,7 @@ +"use client" import Nav from "@/components/window/Nav" -export default function BaseLayout({ - children, -}: { children: React.ReactNode }) { +export default function BaseLayout({ children }: { children: React.ReactNode }) { return (