diff --git a/pages/article/[slug].js b/pages/article/[slug].js index 40fe2ef2..52a2082d 100644 --- a/pages/article/[slug].js +++ b/pages/article/[slug].js @@ -25,7 +25,7 @@ const Slug = props => { const article = document.getElementById('container') if (!article) { router.push('/404').then(() => { - console.warn('找不到页面', router.asPath) + // console.warn('找不到页面', router.asPath) }) } } diff --git a/themes/hexo/Layout404.js b/themes/hexo/Layout404.js index f64e8016..4ed0ebea 100644 --- a/themes/hexo/Layout404.js +++ b/themes/hexo/Layout404.js @@ -11,7 +11,7 @@ export const Layout404 = props => { const article = typeof document !== 'undefined' && document.getElementById('container') if (!article) { router.push('/').then(() => { - console.log('找不到页面', router.asPath) + // console.log('找不到页面', router.asPath) }) } } diff --git a/themes/next/Layout404.js b/themes/next/Layout404.js index 530d2c53..a9d18559 100644 --- a/themes/next/Layout404.js +++ b/themes/next/Layout404.js @@ -11,7 +11,7 @@ export const Layout404 = props => { const article = typeof document !== 'undefined' && document.getElementById('container') if (!article) { router.push('/').then(() => { - console.log('找不到页面', router.asPath) + // console.log('找不到页面', router.asPath) }) } }