mirror of
https://github.com/Wei-Shaw/sub2api.git
synced 2026-11-09 08:58:23 +00:00
fix: prevent custom branding flash on initial load
This commit is contained in:
1 parent
bc2244c83f
commit
500f241692
8 files changed
+199
-34
No files matched your search
@@ -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()
|
||||
|
||||
|
||||
Reference in new issue
Block a user