mirror of
https://github.com/d0zingcat/NotionNext.git
synced 2026-05-21 15:09:43 +00:00
feature:
统计模块
This commit is contained in:
@@ -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 (
|
||||
|
||||
Reference in New Issue
Block a user