Bugfix:

夜间模式按钮初始化主题,按钮样式微调
This commit is contained in:
tangly1024
2021-11-11 13:44:42 +08:00
parent 0e55d8e9d3
commit dfe7be4a11
2 changed files with 7 additions and 1 deletions

View File

@@ -57,6 +57,9 @@ const initTheme = (theme, changeTheme) => {
if (useDark) {
changeTheme('dark')
saveTheme('dark')
} else {
changeTheme('light')
saveTheme('light')
}
}
const baseLayoutClass = document.getElementById('wrapper').classList