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

@@ -316,6 +316,7 @@ const LayoutSlug = props => {
? `${post?.title} | ${siteInfo?.description}`
: `${post?.title} | ${siteInfo?.title}`
const waiting404 = siteConfig('POST_WAITING_TIME_FOR_404') * 1000
useEffect(() => {
// 404
if (!post) {
@@ -332,7 +333,7 @@ const LayoutSlug = props => {
}
}
},
siteConfig('POST_WAITING_TIME_FOR_404') * 1000
waiting404
)
}
}, [post])