refactor: 封装请求
This commit is contained in:
9
src/app/(player)/layout.tsx
Normal file
9
src/app/(player)/layout.tsx
Normal file
@@ -0,0 +1,9 @@
|
||||
import { PlayerAppShell } from "@/components/layout/player-app-shell";
|
||||
|
||||
export default function PlayerLayout({
|
||||
children,
|
||||
}: Readonly<{
|
||||
children: React.ReactNode;
|
||||
}>) {
|
||||
return <PlayerAppShell>{children}</PlayerAppShell>;
|
||||
}
|
||||
23
src/app/(player)/page.tsx
Normal file
23
src/app/(player)/page.tsx
Normal file
@@ -0,0 +1,23 @@
|
||||
import {
|
||||
Card,
|
||||
CardContent,
|
||||
CardDescription,
|
||||
CardHeader,
|
||||
CardTitle,
|
||||
} from "@/components/ui/card";
|
||||
|
||||
export default function PlayerHomePage() {
|
||||
return (
|
||||
<Card>
|
||||
<CardHeader>
|
||||
<CardTitle>玩家端</CardTitle>
|
||||
<CardDescription>
|
||||
基础 layout 已就绪;后续在此挂钱包、大厅等路由。
|
||||
</CardDescription>
|
||||
</CardHeader>
|
||||
<CardContent className="text-sm text-muted-foreground">
|
||||
顶栏与主区域宽度由 PlayerAppShell 统一控制。
|
||||
</CardContent>
|
||||
</Card>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user