From eaadd2a37854c60bd4308aecc9119c2a6e751b41 Mon Sep 17 00:00:00 2001 From: Karlcarlo Date: Thu, 9 Jul 2026 13:45:09 +0800 Subject: [PATCH] =?UTF-8?q?cleanup(profile):=20=E7=A7=BB=E9=99=A4=E8=B0=83?= =?UTF-8?q?=E8=AF=95=E9=9D=A2=E6=9D=BF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/app/pages/ProfilePage.tsx | 16 ---------------- 1 file changed, 16 deletions(-) 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}
- ))} -
- )} {/* 顶部导航 */}