projectSetting.ts
1.67 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
import type { ProjectConfig } from '/#/external/config';
import { CacheTypeEnum } from '@/enums/external/cacheEnum';
// ! You need to clear the browser cache after the change
const setting: Partial<ProjectConfig> = {
  // Whether to show the configuration button
  showSettingButton: true,
  // Whether to show the theme switch button
  showDarkModeToggle: true,
  // Website gray mode, open for possible mourning dates
  grayMode: false,
  // Color Weakness Mode
  colorWeak: false,
  // Whether to cancel the menu, the top, the multi-tab page display, for possible embedded in other systems
  fullContent: false,
  // Whether to display the logo
  showLogo: true,
  // Whether to show footer
  showFooter: false,
  // Whether to enable KeepAlive cache is best to close during development, otherwise the cache needs to be cleared every time
  openKeepAlive: true,
  // Automatic screen lock time, 0 does not lock the screen. Unit minute default 0
  lockTime: 0,
  // Whether to show breadcrumbs
  showBreadCrumb: false,
  // Whether to show the breadcrumb icon
  showBreadCrumbIcon: false,
  // Use error-handler-plugin
  useErrorHandle: false,
  // Whether to open back to top
  useOpenBackTop: true,
  //  Is it possible to embed iframe pages
  canEmbedIFramePage: true,
  // Whether to delete unclosed messages and notify when switching the interface
  closeMessageOnSwitch: 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: false,
  permissionCacheType: CacheTypeEnum.LOCAL
};
export default setting;