loulijun2021
2022-12-31 9481efd2a7cb07b1c97370be736d40213b5f065a
src/store/modules/settings.js
@@ -1,10 +1,22 @@
import defaultSettings from '@/settings'
import variables from '@/styles/element-variables.scss'
const { showSettings, tagsView, fixedHeader, sidebarLogo, headBackgroundColorValue } = defaultSettings
const {
  showSettings,
  tagsView,
  fixedHeader,
  sidebarLogo,
  headBackgroundColorValue,
  menuIsHorizontal,
  leftBackgroundColorValue,
  animationType
} = defaultSettings
const state = {
  animationType: animationType, // 动画类型
  leftBackgroundColorValue: leftBackgroundColorValue, // 左边背景颜色
  headBackgroundColorValue: headBackgroundColorValue, // 头部背景颜色
  menuIsHorizontal: menuIsHorizontal, // 菜单是否是横屏
  theme: variables.theme,
  showSettings: showSettings,
  fixedHeader: fixedHeader,