From 9f7c0acd99821fccf9ac7c44f9ee16102c602f15 Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Sat, 23 Nov 2024 20:39:57 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D-=E8=B7=AF=E7=94=B1=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC=E6=97=B6=E9=A1=B5=E9=9D=A2=E4=B8=8D=E5=8F=AF=E7=82=B9?= =?UTF-8?q?=E5=87=BB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/LoadingCover.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/components/LoadingCover.js b/components/LoadingCover.js index f90ba6b3d59..fc51083d2f6 100644 --- a/components/LoadingCover.js +++ b/components/LoadingCover.js @@ -14,8 +14,7 @@ export default function LoadingCover() { if (onLoading) { setIsVisible(true) } else { - const timeout = setTimeout(() => setIsVisible(false), 1800) // 等待淡出动画结束 - return () => clearTimeout(timeout) + setIsVisible(false) } }, [onLoading])