fix: 修改大屏不能显示bug、修改大屏字体、替换系统logo
Some checks are pending
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run
Some checks are pending
Gitea Actions Demo / Explore-Gitea-Actions (push) Waiting to run
This commit is contained in:
@@ -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,
|
||||
},
|
||||
});
|
||||
|
Reference in New Issue
Block a user