This commit is contained in:
OLDREDSTONE
2025-10-26 22:32:11 +08:00
parent 139f1eef71
commit 8faac81f8f
8 changed files with 132 additions and 90 deletions
-2
View File
@@ -88,7 +88,6 @@ function plugin(hook, vm) {
currentThemeModeIndex = parseInt(window.localStorage.getItem('currentThemeModeIndex'))
}
window.$docsify.currentThemeModeIndex = currentThemeModeIndex
console.log(window.localStorage)
setThemeMode(themeModes[currentThemeModeIndex])
window.localStorage.setItem('currentThemeModeIndex', currentThemeModeIndex)
if (window.$docsify.onLightDarkModeChange) {
@@ -118,7 +117,6 @@ function plugin(hook, vm) {
window.$docsify.currentThemeModeIndex = currentThemeModeIndex
setThemeMode(themeModes[currentThemeModeIndex])
window.localStorage.setItem('currentThemeModeIndex', currentThemeModeIndex)
console.log('currentThemeModeIndex', window.localStorage.getItem('currentThemeModeIndex'))
if (window.$docsify.onLightDarkModeChange) {
window.$docsify.onLightDarkModeChange();
}