diff --git a/frontend/src/app/pages/ProfilePage.tsx b/frontend/src/app/pages/ProfilePage.tsx index dd711d9..f475f4b 100644 --- a/frontend/src/app/pages/ProfilePage.tsx +++ b/frontend/src/app/pages/ProfilePage.tsx @@ -24,7 +24,6 @@ import { Button } from "../components/ui/button"; import { Card } from "../components/ui/card"; import { Badge } from "../components/ui/badge"; import { useUser, getPregnancyStage } from "../context/UserContext"; -import { isDebug, getDebugLogs } from "../services/debug"; interface UserInfo { name: string; @@ -237,23 +236,8 @@ export function ProfilePage() { ); - // 🐞 调试面板(VITE_DEBUG=true 时显示) - const [debugLog] = useState(() => isDebug() ? getDebugLogs() : []); - const [showDebug, setShowDebug] = useState(false); - return (
- {/* 🐞 调试面板 */} - {debugLog.length > 0 && ( -
- - {showDebug && debugLog.map((line, i) => ( -
{line}
- ))} -
- )} {/* 顶部导航 */}