From f26621dc6e4a7cbd5321dd6efff32bb9e63bdb7a Mon Sep 17 00:00:00 2001 From: Ember <197652334@qq.com> Date: Sun, 2 Nov 2025 00:01:38 +0800 Subject: [PATCH] =?UTF-8?q?fix(web):=20=E5=8E=BB=E9=99=A4=E6=AE=8B?= =?UTF-8?q?=E7=95=99=20undefined=EF=BC=88=E6=96=87=E6=9C=AC=E6=9C=80?= =?UTF-8?q?=E7=BB=88=E6=B8=85=E6=B4=97=EF=BC=89=E5=B9=B6=E5=B0=86=E5=90=AF?= =?UTF-8?q?=E5=8A=A8=E5=91=BD=E4=BB=A4=E6=94=B9=E4=B8=BA=E9=A1=B6=E5=B1=82?= =?UTF-8?q?=20README=20=E6=B5=81=E7=A8=8B=EF=BC=88start.sh=20+=20compose?= =?UTF-8?q?=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- web/src/components/LandingPage.tsx | 17 +++++++++-------- web/src/components/Typewriter.tsx | 4 +++- 2 files changed, 12 insertions(+), 9 deletions(-) diff --git a/web/src/components/LandingPage.tsx b/web/src/components/LandingPage.tsx index c715b63a..9f197521 100644 --- a/web/src/components/LandingPage.tsx +++ b/web/src/components/LandingPage.tsx @@ -500,15 +500,16 @@ export function LandingPage() { > diff --git a/web/src/components/Typewriter.tsx b/web/src/components/Typewriter.tsx index f06895fa..3d1ff93f 100644 --- a/web/src/components/Typewriter.tsx +++ b/web/src/components/Typewriter.tsx @@ -62,9 +62,11 @@ export default function Typewriter({ } }, [lines, typingSpeed, lineDelay]) + const displayText = useMemo(() => typedLines.join('\n').replace(/undefined/g, ''), [typedLines]) + return (
-      {typedLines.join('\n')}
+      {displayText}
       
     
)