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])