fix: 重置项目配置,导致左侧菜单栏整体变成白色

pull/4/MERGE
xingyuv 2023-03-29 17:18:27 +08:00
parent adbbff5ea9
commit 89941c44fb
1 changed files with 2 additions and 0 deletions

View File

@ -35,6 +35,7 @@ import { updateColorWeak } from '@/logics/theme/updateColorWeak'
import { updateGrayMode } from '@/logics/theme/updateGrayMode'
import defaultSetting from '@/settings/projectSetting'
import { changeTheme } from '@/logics/theme'
import { updateSidebarBgColor } from '@/logics/theme/updateBackground'
const permissionStore = usePermissionStore()
const { prefixCls } = useDesign('setting-footer')
@ -57,6 +58,7 @@ function handleResetSetting() {
appStore.setProjectConfig(defaultSetting)
const { colorWeak, grayMode, themeColor } = defaultSetting
changeTheme(themeColor)
updateSidebarBgColor()
updateColorWeak(colorWeak)
updateGrayMode(grayMode)
createMessage.success(t('layout.setting.resetSuccess'))