forked from RDCNWebs/rd.rdlevel.cn
1026
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user