Files
aiot-platform-ui/apps/web-antd/src/preferences.ts
lzh 58630196f7
Some checks failed
Web UI CI/CD / build-and-deploy (push) Failing after 46m41s
cleaning - 前端基础样式调整v1.0 (#2)
## 描述

将 `cleaning` 开发分支合并到 `master`。

主要改动包括:
- 基础前端页面调整为初版设计

`cleaning` 分支中包含了多个开发过程的提交,本次合并计划 **使用 Squash 合并为一次提交**,以保持 `master` 分支历史清晰。

## 类型

- [ ] Bug 修复(非破坏性修改)
- [x] 新功能(非破坏性新增功能)
- [ ] 破坏性修改(修改会影响现有功能)
- [ ] 需要更新文档
- [x] 除非引入新的测试示例,否则不修改 `pnpm-lock.yaml`

Reviewed-on: http://124.221.55.225:3000/XW-AIOT/aiot-platform-ui/pulls/2
2025-12-23 10:51:03 +08:00

36 lines
1003 B
TypeScript

import { defineOverridesPreferences } from '@vben/preferences';
/**
* @description 项目配置文件
* 只需要覆盖项目中的一部分配置,不需要的配置不用覆盖,会自动使用默认配置
* !!! 更改配置后请清空缓存,否则可能不生效
*/
export const overridesPreferences = defineOverridesPreferences({
// overrides
app: {
/** 后端路由模式 */
accessMode: 'backend',
name: import.meta.env.VITE_APP_TITLE,
enableRefreshToken: true,
},
footer: {
/** 默认关闭 footer 页脚,因为有一定遮挡 */
enable: false,
fixed: false,
},
copyright: {
companyName: import.meta.env.VITE_APP_TITLE,
companySiteLink: 'https://www.vs-cushwake.com/',
},
logo: {
/** Logo 图片地址 */
source: '/logo.svg',
/** Logo 图片适应方式 */
fit: 'contain',
},
theme: {
/** 主题模式:'light' 为浅色模式,'dark' 为深色模式,'auto' 为跟随系统 */
mode: 'light',
},
});