+
-
diff --git a/components/FloatDarkModeButton.js b/components/FloatDarkModeButton.js
index 53e28513..5fb61c72 100644
--- a/components/FloatDarkModeButton.js
+++ b/components/FloatDarkModeButton.js
@@ -27,8 +27,8 @@ export default function FloatDarkModeButton () {
changeTheme(newTheme)
const htmlElement = document.getElementsByTagName('html')[0]
console.log('切换主题', htmlElement)
- htmlElement.classList.remove(userTheme)
- htmlElement.classList.add(newTheme)
+ htmlElement.classList?.remove(userTheme)
+ htmlElement.classList?.add(newTheme)
}
return (
diff --git a/components/InfoCard.js b/components/InfoCard.js
index 7077a84a..bc4c7337 100644
--- a/components/InfoCard.js
+++ b/components/InfoCard.js
@@ -19,15 +19,6 @@ const InfoCard = ({ postCount }) => {
/>
{BLOG.title}
-
-
-
-
-
-
-
- {postCount}
-