Vben
2021-04-10 215d8bab380728164d7fe2958c2d2d1151fce892
src/settings/projectSetting.ts
@@ -9,12 +9,15 @@
  SettingButtonPositionEnum,
} from '/@/enums/appEnum';
import { SIDE_BAR_BG_COLOR_LIST, HEADER_PRESET_BG_COLOR_LIST } from './designSetting';
import { primaryColor, themeMode } from '../../build/config/themeConfig';
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,
@@ -23,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,
@@ -61,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