Skip to content

Commit

Permalink
修复-路由跳转时页面不可点击
Browse files Browse the repository at this point in the history
  • Loading branch information
tangly1024 committed Nov 23, 2024
1 parent 401d714 commit 9f7c0ac
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions components/LoadingCover.js
Original file line number Diff line number Diff line change
Expand Up @@ -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])

Expand Down

0 comments on commit 9f7c0ac

Please sign in to comment.