From a69b8e3d6c9d045ae17db6984cb05fb33a40a08f Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Tue, 30 Jan 2024 22:45:25 +0800 Subject: [PATCH] heo 404 --- themes/heo/index.js | 26 +++++--------------------- 1 file changed, 5 insertions(+), 21 deletions(-) diff --git a/themes/heo/index.js b/themes/heo/index.js index 98fa4b6d..a4d5eb00 100644 --- a/themes/heo/index.js +++ b/themes/heo/index.js @@ -58,7 +58,6 @@ const LayoutBase = props => { // 全屏模式下的最大宽度 const { fullWidth } = useGlobal() const router = useRouter() - console.log(router) const headerSlot = (
@@ -81,7 +80,7 @@ const LayoutBase = props => { ) // 右侧栏 用户信息+标签列表 - const slotRight = fullWidth ? null : + const slotRight = (router.route === '/404' || fullWidth) ? null : const maxWidth = fullWidth ? 'max-w-[96rem] mx-auto' : 'max-w-[86rem]' // 普通最大宽度是86rem和顶部菜单栏对齐,留空则与窗口对齐 @@ -349,26 +348,11 @@ const LayoutSlug = props => { * @returns */ const Layout404 = props => { - const { meta, siteInfo } = props + // const { meta, siteInfo } = props const { onLoading, fullWidth } = useGlobal() return ( -
- {/* 网页SEO */} - -