Skip to content

Commit

Permalink
Merge pull request tangly1024#3016 from tangly1024/fix/loading-click
Browse files Browse the repository at this point in the history
修复-路由跳转时页面不可点击
  • Loading branch information
tangly1024 authored Nov 23, 2024
2 parents 4488e14 + 9f7c0ac commit 5eee80c
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 5eee80c

Please sign in to comment.