feat(HomePage): 已登录用户访问首页展示个人中心内容
- HomePage: 添加条件渲染,已登录时展示 Center 组件 - 重构 Center 目录结构,合并 Center.tsx 到 index.tsx - 重命名 CenterDashboard 为 Center(lazy-components, homeRoutes) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -1,4 +0,0 @@
|
||||
// src/views/Center/index.js
|
||||
// 入口文件,导出 Center 组件
|
||||
|
||||
export { default } from './Center';
|
||||
@@ -13,12 +13,12 @@ import ForumCenter from '@views/Profile/components/ForumCenter';
|
||||
import { THEME } from '@views/Profile/components/MarketDashboard/constants';
|
||||
|
||||
/**
|
||||
* CenterDashboard 组件
|
||||
* Center 组件
|
||||
* 个人中心仪表板主页面
|
||||
*
|
||||
* 注意:右侧 WatchSidebar 已移至全局 GlobalSidebar(在 MainLayout 中渲染)
|
||||
*/
|
||||
const CenterDashboard: React.FC = () => {
|
||||
const Center: React.FC = () => {
|
||||
|
||||
return (
|
||||
<Box bg={THEME.bg.primary} minH="100vh" overflowX="hidden">
|
||||
@@ -42,4 +42,4 @@ const CenterDashboard: React.FC = () => {
|
||||
);
|
||||
};
|
||||
|
||||
export default CenterDashboard;
|
||||
export default Center;
|
||||
Reference in New Issue
Block a user