vben
2021-02-03 3d1681ee9ae2b8e8a8f9d7afeaef3b059aa20b48
src/settings/projectSetting.ts
@@ -1,9 +1,9 @@
import type { ProjectConfig } from '/@/types/config';
import { MenuTypeEnum, MenuModeEnum, TriggerEnum } from '/@/enums/menuEnum';
import { MenuTypeEnum, MenuModeEnum, TriggerEnum, MixSidebarTriggerEnum } from '/@/enums/menuEnum';
import { CacheTypeEnum } from '/@/enums/cacheEnum';
import { ContentEnum, PermissionModeEnum, ThemeEnum, RouterTransitionEnum } from '/@/enums/appEnum';
import { primaryColor } from '../../build/config/lessModifyVars';
import { primaryColor, themeMode } from '../../build/config/themeConfig';
import { isProdMode } from '/@/utils/env';
// ! You need to clear the browser cache after the change
@@ -20,6 +20,8 @@
  // color
  // TODO Theme color
  themeColor: primaryColor,
  // TODO dark theme
  themeMode: themeMode,
  // Website gray mode, open for possible mourning dates
  grayMode: false,
@@ -37,7 +39,7 @@
  showLogo: true,
  // Whether to show footer
  showFooter: true,
  showFooter: false,
  // locale setting
  locale: {
@@ -76,7 +78,7 @@
  // Menu configuration
  menuSetting: {
    // sidebar menu bg color
    bgColor: '#273352',
    bgColor: '#001529',
    //  Whether to fix the left menu
    fixed: true,
    // Menu collapse
@@ -85,7 +87,7 @@
    collapsedShowTitle: false,
    // Whether it can be dragged
    // Only limited to the opening of the left menu, the mouse has a drag bar on the right side of the menu
    canDrag: true,
    canDrag: false,
    // Whether to show no dom
    show: true,
    // Whether to show dom
@@ -108,6 +110,10 @@
    accordion: true,
    // Switch page to close menu
    closeMixSidebarOnChange: false,
    // Module opening method ‘click’ |'hover'
    mixSideTrigger: MixSidebarTriggerEnum.CLICK,
    // Fixed expanded menu
    mixSideFixed: false,
  },
  // Multi-label
@@ -121,6 +127,8 @@
    // Whether to show the refresh button
    showRedo: true,
    // Whether to show the collapse button
    showFold: true,
  },
  // Transition Setting
@@ -166,7 +174,7 @@
  // Whether to cancel the http request that has been sent but not responded when switching the interface.
  // If it is enabled, I want to overwrite a single interface. Can be set in a separate interface
  removeAllHttpPending: true,
  removeAllHttpPending: false,
};
export default setting;