v3.5.0 主题颜色保存配置

This commit is contained in:
YunaiV
2022-02-15 20:47:15 +08:00
parent a7a98d153c
commit 62cc1206f7
6 changed files with 116 additions and 114 deletions

View File

@ -5,7 +5,7 @@ const { sideTheme, showSettings, topNav, tagsView, fixedHeader, sidebarLogo } =
const storageSetting = JSON.parse(localStorage.getItem('layout-setting')) || ''
const state = {
theme: variables.theme,
theme: storageSetting.theme || variables.theme,
sideTheme: storageSetting.sideTheme || sideTheme,
showSettings: showSettings,
topNav: storageSetting.topNav === undefined ? topNav : storageSetting.topNav,