From 4afffe649381775f25193cab37f9b57a0ac93762 Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Fri, 13 May 2022 15:56:23 +0800 Subject: [PATCH] =?UTF-8?q?=E5=86=97=E4=BD=99=E6=97=A5=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/article/[slug].js | 2 +- themes/hexo/Layout404.js | 2 +- themes/next/Layout404.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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) }) } }