fix(修复错误调用React HOOK的问题):

(cherry picked from commit 03408d4d65a52a1388d9fc251c45a624ff056766)
This commit is contained in:
anime
2024-12-03 19:46:09 +08:00
parent 7726363c69
commit d500cff483
15 changed files with 30 additions and 15 deletions

View File

@@ -185,6 +185,7 @@ const LayoutSlug = props => {
)
const router = useRouter()
const waiting404 = siteConfig('POST_WAITING_TIME_FOR_404') * 1000
useEffect(() => {
// 404
if (!post) {
@@ -201,7 +202,7 @@ const LayoutSlug = props => {
}
}
},
siteConfig('POST_WAITING_TIME_FOR_404') * 1000
waiting404
)
}
}, [post])