fix: 重置项目配置,导致左侧菜单栏整体变成白色
parent
adbbff5ea9
commit
89941c44fb
|
@ -35,6 +35,7 @@ import { updateColorWeak } from '@/logics/theme/updateColorWeak'
|
||||||
import { updateGrayMode } from '@/logics/theme/updateGrayMode'
|
import { updateGrayMode } from '@/logics/theme/updateGrayMode'
|
||||||
import defaultSetting from '@/settings/projectSetting'
|
import defaultSetting from '@/settings/projectSetting'
|
||||||
import { changeTheme } from '@/logics/theme'
|
import { changeTheme } from '@/logics/theme'
|
||||||
|
import { updateSidebarBgColor } from '@/logics/theme/updateBackground'
|
||||||
|
|
||||||
const permissionStore = usePermissionStore()
|
const permissionStore = usePermissionStore()
|
||||||
const { prefixCls } = useDesign('setting-footer')
|
const { prefixCls } = useDesign('setting-footer')
|
||||||
|
@ -57,6 +58,7 @@ function handleResetSetting() {
|
||||||
appStore.setProjectConfig(defaultSetting)
|
appStore.setProjectConfig(defaultSetting)
|
||||||
const { colorWeak, grayMode, themeColor } = defaultSetting
|
const { colorWeak, grayMode, themeColor } = defaultSetting
|
||||||
changeTheme(themeColor)
|
changeTheme(themeColor)
|
||||||
|
updateSidebarBgColor()
|
||||||
updateColorWeak(colorWeak)
|
updateColorWeak(colorWeak)
|
||||||
updateGrayMode(grayMode)
|
updateGrayMode(grayMode)
|
||||||
createMessage.success(t('layout.setting.resetSuccess'))
|
createMessage.success(t('layout.setting.resetSuccess'))
|
||||||
|
|
Loading…
Reference in New Issue