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 }) => {
-