fix(使所有主题的404能够正常运转): 同时让获取文章DOM节点也避免公告栏等其他位置的干扰

This commit is contained in:
anime
2024-11-08 00:30:44 +08:00
parent 3374068163
commit c8d90a4166
20 changed files with 25 additions and 25 deletions

View File

@@ -162,7 +162,7 @@ const LayoutSlug = props => {
setTimeout(
() => {
if (isBrowser) {
const article = document.getElementById('notion-article')
const article = document.querySelector('#article-wrapper #notion-article')
if (!article) {
router.push('/404').then(() => {
console.warn('找不到页面', router.asPath)