52 lines
1.2 KiB
TypeScript
52 lines
1.2 KiB
TypeScript
import { defineOverridesPreferences } from '@vben/preferences';
|
|
|
|
/**
|
|
* @description 项目配置文件
|
|
* 只需要覆盖项目中的一部分配置,不需要的配置不用覆盖,会自动使用默认配置
|
|
* !!! 更改配置后请清空缓存,否则可能不生效
|
|
*/
|
|
export const overridesPreferences = defineOverridesPreferences({
|
|
// overrides
|
|
app: {
|
|
name: import.meta.env.VITE_APP_TITLE,
|
|
layout: 'sidebar-mixed-nav',
|
|
defaultHomePath: '/workspace', // 默认首页路径
|
|
enablePreferences: false, // 是否启用偏好设置
|
|
loginExpiredMode: 'page', // 登录过期模式 不用弹窗登录 跳转到页面登录,防止一些界面不会再加载
|
|
},
|
|
theme: {
|
|
mode: 'light',
|
|
radius: '0.75',
|
|
},
|
|
breadcrumb: {
|
|
hideOnlyOne: true,
|
|
styleType: 'normal',
|
|
},
|
|
copyright: {
|
|
enable: false,
|
|
},
|
|
shortcutKeys: {
|
|
globalLockScreen: false,
|
|
},
|
|
sidebar: {
|
|
collapsed: false,
|
|
fixedButton: true,
|
|
width: 170,
|
|
},
|
|
transition: {
|
|
name: 'fade-up',
|
|
},
|
|
widget: {
|
|
lockScreen: false,
|
|
notification: false,
|
|
languageToggle: false,
|
|
},
|
|
navigation: {
|
|
accordion: false,
|
|
},
|
|
tabbar: {
|
|
middleClickToClose: true,
|
|
keepAlive: false,
|
|
},
|
|
});
|