loulijun2021
2023-05-11 3d73201f0830320c703cfb3d36b47976eb3d94e7
src/store/modules/settings.js
@@ -1,9 +1,22 @@
import defaultSettings from '@/settings'
import variables from '@/styles/element-variables.scss'
const { showSettings, tagsView, fixedHeader, sidebarLogo } = 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,