Vben
2021-04-10 215d8bab380728164d7fe2958c2d2d1151fce892
src/settings/projectSetting.ts
@@ -8,12 +8,16 @@
  RouterTransitionEnum,
  SettingButtonPositionEnum,
} from '/@/enums/appEnum';
import { primaryColor, themeMode } from '../../build/config/themeConfig';
import { SIDE_BAR_BG_COLOR_LIST, HEADER_PRESET_BG_COLOR_LIST } from './designSetting';
import { primaryColor } from '../../build/config/themeConfig';
// ! You need to clear the browser cache after the change
const setting: ProjectConfig = {
  // Whether to show the configuration button
  showSettingButton: true,
  // Whether to show the theme switch button
  showDarkModeToggle: true,
  // `Settings` button position
  settingButtonPosition: SettingButtonPositionEnum.AUTO,
@@ -22,13 +26,10 @@
  permissionMode: PermissionModeEnum.ROLE,
  // Permission-related cache is stored in sessionStorage or localStorage
  permissionCacheType: CacheTypeEnum.SESSION,
  permissionCacheType: CacheTypeEnum.LOCAL,
  // color
  themeColor: primaryColor,
  // TODO dark theme
  themeMode: themeMode,
  // Website gray mode, open for possible mourning dates
  grayMode: false,
@@ -51,7 +52,7 @@
  // Header configuration
  headerSetting: {
    // header bg color
    bgColor: '#ffffff',
    bgColor: HEADER_PRESET_BG_COLOR_LIST[0],
    // Fixed at the top
    fixed: true,
    // Whether to show top
@@ -60,7 +61,6 @@
    theme: ThemeEnum.LIGHT,
    // Whether to enable the lock screen function
    useLockPage: true,
    // Whether to show the full screen button
    showFullScreen: true,
    // Whether to show the document button
@@ -74,7 +74,7 @@
  // Menu configuration
  menuSetting: {
    // sidebar menu bg color
    bgColor: '#001529',
    bgColor: SIDE_BAR_BG_COLOR_LIST[0],
    //  Whether to fix the left menu
    fixed: true,
    // Menu collapse