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