fix: prevent custom branding flash on initial load

This commit is contained in:
weiness committed 2026-07-18 00:24:06 +08:00
1 parent bc2244c83f
commit 500f241692
8 files changed
+199 -34

No files matched your search

+2
View File
@@ -4,6 +4,7 @@ import App from './App.vue'
import router from './router'
import i18n, { initI18n } from './i18n'
import { useAppStore } from '@/stores/app'
import { updateFavicon } from '@/utils/branding'
import './style.css'
function initThemeClass() {
@@ -31,6 +32,7 @@ async function bootstrap() {
if (appStore.siteName && appStore.siteName !== 'Sub2API') {
document.title = `${appStore.siteName} - AI API Gateway`
}
updateFavicon(appStore.siteLogo)
await initI18n()