| | |
| | | import type { ProjectConfig } from '/@/types/config'; |
| | | |
| | | import type { ProjectConfig } from '/#/config'; |
| | | 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 { isProdMode } from '/@/utils/env'; |
| | | import { |
| | | ContentEnum, |
| | | PermissionModeEnum, |
| | | ThemeEnum, |
| | | RouterTransitionEnum, |
| | | SettingButtonPositionEnum, |
| | | } from '/@/enums/appEnum'; |
| | | import { primaryColor, themeMode } 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, |
| | | |
| | | // `Settings` button position |
| | | settingButtonPosition: SettingButtonPositionEnum.AUTO, |
| | | |
| | | // Permission mode |
| | | permissionMode: PermissionModeEnum.ROLE, |
| | | |
| | | // Permission-related cache is stored in sessionStorage or localStorage |
| | | permissionCacheType: CacheTypeEnum.LOCAL, |
| | | permissionCacheType: CacheTypeEnum.SESSION, |
| | | |
| | | // color |
| | | // TODO Theme color |
| | | themeColor: primaryColor, |
| | | |
| | | // TODO dark theme |
| | | themeMode: themeMode, |
| | | |
| | | // Website gray mode, open for possible mourning dates |
| | | grayMode: false, |
| | |
| | | |
| | | // Whether to show footer |
| | | showFooter: false, |
| | | |
| | | // locale setting |
| | | locale: { |
| | | show: true, |
| | | // Locale |
| | | lang: 'zh_CN', |
| | | // Default locale |
| | | fallback: 'zh_CN', |
| | | // available Locales |
| | | availableLocales: ['zh_CN', 'en'], |
| | | }, |
| | | |
| | | // Header configuration |
| | | headerSetting: { |
| | |
| | | // Menu configuration |
| | | menuSetting: { |
| | | // sidebar menu bg color |
| | | bgColor: '#273352', |
| | | bgColor: '#001529', |
| | | // Whether to fix the left menu |
| | | fixed: true, |
| | | // Menu collapse |
| | |
| | | showBreadCrumbIcon: false, |
| | | |
| | | // Use error-handler-plugin |
| | | useErrorHandle: isProdMode(), |
| | | useErrorHandle: false, |
| | | |
| | | // Whether to open back to top |
| | | useOpenBackTop: true, |
| | |
| | | |
| | | // 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; |