mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-02 07:26:45 +00:00
Merge pull request #3016 from tangly1024/fix/loading-click
修复-路由跳转时页面不可点击
This commit is contained in:
@@ -14,8 +14,7 @@ export default function LoadingCover() {
|
|||||||
if (onLoading) {
|
if (onLoading) {
|
||||||
setIsVisible(true)
|
setIsVisible(true)
|
||||||
} else {
|
} else {
|
||||||
const timeout = setTimeout(() => setIsVisible(false), 1800) // 等待淡出动画结束
|
setIsVisible(false)
|
||||||
return () => clearTimeout(timeout)
|
|
||||||
}
|
}
|
||||||
}, [onLoading])
|
}, [onLoading])
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user