mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-06-05 15:10:26 +00:00
fix(使所有主题的404能够正常运转): 同时让获取文章DOM节点也避免公告栏等其他位置的干扰
This commit is contained in:
@@ -304,7 +304,7 @@ const Layout404 = props => {
|
||||
// 延时3秒如果加载失败就返回首页
|
||||
setTimeout(() => {
|
||||
if (isBrowser) {
|
||||
const article = document.getElementById('notion-article')
|
||||
const article = document.querySelector('#article-wrapper #notion-article')
|
||||
if (!article) {
|
||||
router.push('/').then(() => {
|
||||
// console.log('找不到页面', router.asPath)
|
||||
|
||||
Reference in New Issue
Block a user