From ea4dacad18a4917c7216b3839cefc05d23f31fa4 Mon Sep 17 00:00:00 2001 From: "tangly1024.com" Date: Wed, 18 Sep 2024 09:45:49 +0800 Subject: [PATCH] =?UTF-8?q?magzine=20-=20=E7=A7=BB=E5=8A=A8=E7=AB=AF?= =?UTF-8?q?=E8=8F=9C=E5=8D=95OpenWrite=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/OpenWrite.js | 3 ++- themes/magzine/components/Catalog.js | 6 +++--- themes/magzine/components/Progress.js | 14 +++++++------- 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a/components/OpenWrite.js b/components/OpenWrite.js index 5caf5d7b..92d8c1ef 100644 --- a/components/OpenWrite.js +++ b/components/OpenWrite.js @@ -79,13 +79,14 @@ const OpenWrite = () => { return } if (isBrowser && blogId) { + toggleTocItems(true) // 禁止目录项的点击 + // Check if the element with id 'read-more-wrap' already exists const readMoreWrap = document.getElementById('read-more-wrap') // Only load the script if the element doesn't exist if (!readMoreWrap) { loadOpenWrite() - toggleTocItems(true) // 禁止目录项的点击 } } }) diff --git a/themes/magzine/components/Catalog.js b/themes/magzine/components/Catalog.js index 630cf031..a03e1d80 100644 --- a/themes/magzine/components/Catalog.js +++ b/themes/magzine/components/Catalog.js @@ -70,7 +70,7 @@ const Catalog = ({ toc, className }) => {
-