fix: 重置项目配置,导致左侧菜单栏整体变成白色
parent
adbbff5ea9
commit
89941c44fb
|
@ -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'))
|
||||
|
|
Loading…
Reference in New Issue