71 lines
1.7 KiB
TypeScript
71 lines
1.7 KiB
TypeScript
import { defineOverridesPreferences } from '@vben/preferences';
|
|
|
|
/**
|
|
* @description 项目配置文件
|
|
* 只需要覆盖项目中的一部分配置,不需要的配置不用覆盖,会自动使用默认配置
|
|
* !!! 更改配置后请清空缓存,否则可能不生效
|
|
*/
|
|
export const overridesPreferences = defineOverridesPreferences({
|
|
// overrides
|
|
app: {
|
|
name: 'BBIT',
|
|
layout: 'header-sidebar-nav',
|
|
defaultHomePath: '/workspace', // 默认首页路径
|
|
enablePreferences: false, // 是否启用偏好设置
|
|
enableRefreshToken: true, // 启动刷新token模式
|
|
loginExpiredMode: 'modal', // 登录过期模式 不用弹窗登录 跳转到页面登录,防止一些界面不会再加载
|
|
accessMode: 'mixed', // 混合权限模式
|
|
},
|
|
theme: {
|
|
mode: 'light',
|
|
radius: '0.75',
|
|
},
|
|
breadcrumb: {
|
|
hideOnlyOne: true,
|
|
styleType: 'normal',
|
|
showHome: true,
|
|
},
|
|
copyright: {
|
|
enable: false,
|
|
companyName: '技术支持:四川主干信息技术有限公司 BBITCN Co.,Ltd',
|
|
companySiteLink: '',
|
|
date: '2026',
|
|
},
|
|
shortcutKeys: {
|
|
globalLockScreen: false,
|
|
},
|
|
sidebar: {
|
|
collapsed: false,
|
|
fixedButton: true,
|
|
width: 190,
|
|
},
|
|
transition: {
|
|
name: 'fade-up',
|
|
},
|
|
widget: {
|
|
fullscreen: false,
|
|
lockScreen: false,
|
|
notification: false,
|
|
languageToggle: false,
|
|
themeToggle: false,
|
|
timezone: false,
|
|
},
|
|
navigation: {
|
|
accordion: false,
|
|
},
|
|
tabbar: {
|
|
middleClickToClose: true,
|
|
keepAlive: true,
|
|
},
|
|
header: {
|
|
mode: 'auto',
|
|
},
|
|
footer: {
|
|
enable: false,
|
|
},
|
|
logo: {
|
|
enable: true,
|
|
source: 'https://ai.ronsunny.cn:9000/system/default/favicon.ico',
|
|
},
|
|
});
|