From 32935320ab0797b6ebd16a803c6a4af1ee0dd996 Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Tue, 4 Jan 2022 12:28:44 +0800 Subject: [PATCH 01/13] =?UTF-8?q?live2D=20=E9=81=AE=E7=BD=A9BUG?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/Live2D.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/components/Live2D.js b/components/Live2D.js index eef9f7e2..e6d924ef 100644 --- a/components/Live2D.js +++ b/components/Live2D.js @@ -3,7 +3,11 @@ import BLOG from '@/blog.config' let hasLoad = false export default function Live2D () { - if (BLOG.widget?.showPet && typeof window !== 'undefined' && !hasLoad) { + if (!BLOG.widget?.showPet) { + return <> + } + + if (typeof window !== 'undefined' && !hasLoad) { initLive2D() hasLoad = true } From 0860c1633b0072d3fd56ac7b440ed0461c525ed8 Mon Sep 17 00:00:00 2001 From: tangly1024 Date: Tue, 4 Jan 2022 12:29:00 +0800 Subject: [PATCH 02/13] =?UTF-8?q?Sticky=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/CategoryList.js | 4 ++-- components/StickyBar.js | 2 +- components/TagList.js | 5 +---- 3 files changed, 4 insertions(+), 7 deletions(-) diff --git a/components/CategoryList.js b/components/CategoryList.js index 1f7ed378..cc876f82 100644 --- a/components/CategoryList.js +++ b/components/CategoryList.js @@ -1,7 +1,7 @@ import Link from 'next/link' import React from 'react' import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' -import { faFolder, faFolderOpen, faThList } from '@fortawesome/free-solid-svg-icons' +import { faFolder, faFolderOpen } from '@fortawesome/free-solid-svg-icons' import { useGlobal } from '@/lib/global' const CategoryList = ({ currentCategory, categories }) => { @@ -11,7 +11,7 @@ const CategoryList = ({ currentCategory, categories }) => { const { locale } = useGlobal() return