refactor(HomePage): 暂时禁用已登录跳转个人中心逻辑
This commit is contained in:
@@ -16,7 +16,7 @@ import { FeaturedFeatureCard } from './components/FeaturedFeatureCard';
|
||||
import { FeatureCard } from './components/FeatureCard';
|
||||
import MiniProgramLauncher from '@/components/MiniProgramLauncher';
|
||||
import { isMobileDevice } from '@/components/MiniProgramLauncher/hooks/useWechatEnvironment';
|
||||
import Center from '@views/Center';
|
||||
// [暂时禁用] import Center from '@views/Center';
|
||||
import '@/styles/home-animations.css';
|
||||
|
||||
/**
|
||||
@@ -89,21 +89,15 @@ const HomePage: React.FC = () => {
|
||||
return null;
|
||||
}
|
||||
|
||||
// 已登录直接渲染个人中心
|
||||
if (isAuthenticated && user) {
|
||||
return <Center />;
|
||||
}
|
||||
// [暂时禁用] 已登录直接渲染个人中心(未来可能恢复)
|
||||
// if (isAuthenticated && user) {
|
||||
// return <Center />;
|
||||
// }
|
||||
|
||||
// 未登录渲染首页内容
|
||||
return (
|
||||
<Box minH="100%">
|
||||
{/* 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}>
|
||||
<VStack
|
||||
@@ -146,7 +140,6 @@ const HomePage: React.FC = () => {
|
||||
</Box>
|
||||
</VStack>
|
||||
</Container>
|
||||
</Box>
|
||||
|
||||
{/* 移动端右上角固定按钮 - 小程序入口 */}
|
||||
{isMobile && (
|
||||
|
||||
Reference in New Issue
Block a user