更新 Web/src/App.vue

This commit is contained in:
TowCents 2025-04-25 15:54:15 +08:00
parent f5183e4acc
commit e1483f186a

View File

@ -22,7 +22,7 @@ import mittBus from '/@/utils/mitt';
import setIntroduction from '/@/utils/setIconfont';
// import Watermark from '/@/utils/watermark';
import { initIdleTimeout } from '/@/utils/idleTimeout';
import { updateFavicon } from '/@/utils/sysInfo'
//
const LockScreen = defineAsyncComponent(() => import('/@/layout/lockScreen/index.vue'));
const Settings = defineAsyncComponent(() => import('/@/layout/navBars/topBar/settings.vue'));
@ -74,6 +74,12 @@ onMounted(() => {
if (Local.get('themeConfig')) {
storesThemeConfig.setThemeConfig({ themeConfig: Local.get('themeConfig') });
document.documentElement.style.cssText = Local.get('themeConfigStyle');
// favicon
const storedConfig = Local.get('themeConfig');
if (storedConfig && storedConfig.logoUrl) {
updateFavicon(storedConfig.logoUrl);
}
}
//
if (Session.get('isTagsViewCurrenFull')) {