From 00bf5d5bbf4dccaa0556f8df3041b0ef3beadf50 Mon Sep 17 00:00:00 2001 From: luchanan <398778994@qq.com> Date: 星期一, 23 十月 2023 14:37:56 +0800 Subject: [PATCH] 站内支持API接口地址切换 (#3162) --- src/settings/projectSetting.ts | 23 +++++++++++++++-------- 1 files changed, 15 insertions(+), 8 deletions(-) diff --git a/src/settings/projectSetting.ts b/src/settings/projectSetting.ts index eca9e05..65fc698 100644 --- a/src/settings/projectSetting.ts +++ b/src/settings/projectSetting.ts @@ -7,29 +7,34 @@ ThemeEnum, RouterTransitionEnum, SettingButtonPositionEnum, + SessionTimeoutProcessingEnum, } from '/@/enums/appEnum'; import { SIDE_BAR_BG_COLOR_LIST, HEADER_PRESET_BG_COLOR_LIST } from './designSetting'; -import { primaryColor, themeMode } from '../../build/config/themeConfig'; + +const primaryColor = '#0960bd'; // ! 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, // Permission mode - permissionMode: PermissionModeEnum.ROLE, + permissionMode: PermissionModeEnum.ROUTE_MAPPING, // Permission-related cache is stored in sessionStorage or localStorage permissionCacheType: CacheTypeEnum.LOCAL, + // Session timeout processing + sessionTimeoutProcessing: SessionTimeoutProcessingEnum.ROUTE_JUMP, + // color themeColor: primaryColor, - - // TODO dark theme - themeMode: themeMode, // Website gray mode, open for possible mourning dates grayMode: false, @@ -61,7 +66,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 @@ -70,6 +74,7 @@ showNotice: true, // Whether to display the menu search showSearch: true, + showApi: true, }, // Menu configuration @@ -80,6 +85,8 @@ fixed: true, // Menu collapse collapsed: false, + // When sider hide because of the responsive layout + siderHidden: false, // Whether to display the menu name when folding the menu collapsedShowTitle: false, // Whether it can be dragged @@ -115,13 +122,13 @@ // Multi-label multiTabsSetting: { + cache: false, // Turn on show: true, // Is it possible to drag and drop sorting tabs canDrag: true, // Turn on quick actions showQuick: true, - // Whether to show the refresh button showRedo: true, // Whether to show the collapse button @@ -131,7 +138,7 @@ // Transition Setting transitionSetting: { // Whether to open the page switching animation - // The disabled state will also disable pageLoadinng + // The disabled state will also disable pageLoading enable: true, // Route basic switching animation -- Gitblit v1.8.0