2026-04-01 09:51:27 +08:00
|
|
|
|
import { useMyState } from '@/common';
|
2026-04-01 10:49:03 +08:00
|
|
|
|
import QuickActionsGrid from './components/QuickActionsGrid';
|
|
|
|
|
|
import StatisticsPlaceholder from './components/StatisticsPlaceholder';
|
2026-04-01 09:51:27 +08:00
|
|
|
|
|
|
|
|
|
|
export default function Index() {
|
|
|
|
|
|
const { snap } = useMyState();
|
|
|
|
|
|
const username = snap.session?.user?.username || '用户';
|
|
|
|
|
|
|
|
|
|
|
|
return (
|
2026-04-16 20:28:45 +08:00
|
|
|
|
<div>
|
2026-04-01 10:49:03 +08:00
|
|
|
|
{/* 欢迎语区域 */}
|
|
|
|
|
|
<div
|
|
|
|
|
|
style={{
|
|
|
|
|
|
marginBottom: '32px',
|
|
|
|
|
|
}}
|
|
|
|
|
|
>
|
|
|
|
|
|
<h1
|
|
|
|
|
|
style={{
|
|
|
|
|
|
fontSize: '32px',
|
2026-04-01 09:51:27 +08:00
|
|
|
|
fontWeight: 600,
|
|
|
|
|
|
color: '#262626',
|
2026-04-01 10:49:03 +08:00
|
|
|
|
marginBottom: '12px',
|
|
|
|
|
|
}}
|
|
|
|
|
|
>
|
|
|
|
|
|
欢迎回来,{username}!
|
|
|
|
|
|
</h1>
|
|
|
|
|
|
<p
|
|
|
|
|
|
style={{
|
|
|
|
|
|
fontSize: '16px',
|
2026-04-01 09:51:27 +08:00
|
|
|
|
color: '#8c8c8c',
|
|
|
|
|
|
marginBottom: 0,
|
2026-04-01 09:53:40 +08:00
|
|
|
|
}}
|
|
|
|
|
|
>
|
2026-04-01 10:49:03 +08:00
|
|
|
|
这里是您的快捷工作台,点击下方卡片快速开始常用操作
|
|
|
|
|
|
</p>
|
2026-04-01 09:51:27 +08:00
|
|
|
|
</div>
|
2026-04-01 10:49:03 +08:00
|
|
|
|
|
|
|
|
|
|
{/* 快捷操作区域 */}
|
|
|
|
|
|
<QuickActionsGrid />
|
|
|
|
|
|
|
|
|
|
|
|
{/* 统计数据预留区域 */}
|
|
|
|
|
|
<StatisticsPlaceholder />
|
2026-04-01 09:51:27 +08:00
|
|
|
|
</div>
|
|
|
|
|
|
);
|
2025-06-27 16:42:11 +08:00
|
|
|
|
}
|