refactor(HomePage): 暂时禁用已登录跳转个人中心逻辑

This commit is contained in:
zdl
2026-01-15 17:49:19 +08:00
parent e110d5860c
commit 6cf9dca324

View File

@@ -16,7 +16,7 @@ import { FeaturedFeatureCard } from './components/FeaturedFeatureCard';
import { FeatureCard } from './components/FeatureCard'; import { FeatureCard } from './components/FeatureCard';
import MiniProgramLauncher from '@/components/MiniProgramLauncher'; import MiniProgramLauncher from '@/components/MiniProgramLauncher';
import { isMobileDevice } from '@/components/MiniProgramLauncher/hooks/useWechatEnvironment'; import { isMobileDevice } from '@/components/MiniProgramLauncher/hooks/useWechatEnvironment';
import Center from '@views/Center'; // [暂时禁用] import Center from '@views/Center';
import '@/styles/home-animations.css'; import '@/styles/home-animations.css';
/** /**
@@ -89,21 +89,15 @@ const HomePage: React.FC = () => {
return null; return null;
} }
// 已登录直接渲染个人中心 // [暂时禁用] 已登录直接渲染个人中心(未来可能恢复)
if (isAuthenticated && user) { // if (isAuthenticated && user) {
return <Center />; // return <Center />;
} // }
// 未登录渲染首页内容 // 未登录渲染首页内容
return ( return (
<Box minH="100%"> <Box minH="100%">
{/* Hero Section - 深色科技风格,自适应容器高度 */} {/* Hero Section - 深色科技风格,自适应容器高度 */}
<Box
position="relative"
minH="100%"
bg="linear-gradient(135deg, #0E0C15 0%, #15131D 50%, #252134 100%)"
overflow="hidden"
>
<Container maxW="7xl" position="relative" px={containerPx}> <Container maxW="7xl" position="relative" px={containerPx}>
<VStack <VStack
@@ -146,7 +140,6 @@ const HomePage: React.FC = () => {
</Box> </Box>
</VStack> </VStack>
</Container> </Container>
</Box>
{/* 移动端右上角固定按钮 - 小程序入口 */} {/* 移动端右上角固定按钮 - 小程序入口 */}
{isMobile && ( {isMobile && (