daofu-gov-pc/src/settings.ts
2024-01-23 09:11:49 +08:00

92 lines
2.5 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

let globalSettings = {
app: {
// 颜色方案,可选值为 light、dark
colorScheme: "light",
// Element 组件默认尺寸支持large、default、small
elementSize: "default",
// 是否将 iconify 图标集中的 Element Plus 图标下载到本地,以便在离线环境下使用
iconifyOfflineUse: false,
// 是否开启权限功能
enablePermission: false,
// 是否开启载入进度条
enableProgress: true,
// 是否开启动态标题
enableDynamicTitle: false,
/**
* 路由数据来源
* frontend 前端
* backend 后端
* filesystem 文件系统
*/
routeBaseOn: "frontend",
},
// 控制台
dashboard: {
// 是否开启
enable: false,
// 控制台名称
title: "控制台",
},
// 布局
layout: {
// 是否开启移动端适配,开启后当页面宽度小于 992px 时自动切换为移动端展示
enableMobileAdaptation: true,
},
// 导航栏
menu: {
/**
* 数据来源,当 app.routeBaseOn 为 filesystem 时生效
* frontend 前端
* backend 后端
*/
baseOn: "frontend",
/**
* 导航栏模式
* side 侧边栏模式(含主导航)
* head 顶部模式
* single 侧边栏模式(无主导航)
*/
menuMode: "head",
// 切换主导航同时跳转页面
switchMainMenuAndPageJump: false,
// 次导航只保持一个子项的展开
subMenuUniqueOpened: true,
// 次导航是否收起
subMenuCollapse: false,
},
// 顶栏
topbar: {
// 是否固定
fixed: true,
// 是否开启侧边栏展开收起按钮
enableSidebarCollapse: false,
// 是否开启面包屑导航
enableBreadcrumb: true,
// 是否开启导航搜索
enableNavSearch: true,
// 是否开启全屏
enableFullscreen: false,
// 是否开启页面刷新
enablePageReload: false,
// 是否开启颜色主题
enableColorScheme: false,
// 是否开启应用配置(建议在生产环境关闭)
enableAppSetting: false,
},
// 底部版权
copyright: {
// 是否开启,同时在路由 meta 对象里可以单独设置某个路由是否显示底部版权信息
enable: false,
// 版权信息配置格式为Copyright © [dates] <company> <beian>
dates: "2020-2022",
company: "zyjy-admin",
website: "",
beian: "",
},
};
import settingsCustom from "./settings.custom.json";
Object.assign(globalSettings, settingsCustom);
export default globalSettings;