fix: 修改大屏不能显示bug、修改大屏字体、替换系统logo
Some checks are pending
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run

This commit is contained in:
fyy
2025-07-24 16:09:54 +08:00
parent 85e021b5ac
commit 007bda30bc
13 changed files with 1365 additions and 1176 deletions

View File

@@ -1,5 +1,10 @@
import { defineOverridesPreferences } from '@vben/preferences';
import logo from '../src/assets/logo.png'
import logoDark from '../src/assets/logoDark.png'
import logoLight from '../src/assets/logoLight.png'
import { preferences, usePreferences } from '@vben/preferences';
const { isDark } = usePreferences();
/**
* @description 项目配置文件
* 只需要覆盖项目中的一部分配置,不需要的配置不用覆盖,会自动使用默认配置
@@ -64,6 +69,6 @@ export const overridesPreferences = defineOverridesPreferences({
*/
logo: {
enable: true,
source: logo,
source: isDark ? logoDark : logoLight,
},
});