icon changed

This commit is contained in:
2026-06-17 11:26:26 +03:30
parent 32dde73dff
commit b42b123957
4 changed files with 108 additions and 149 deletions
+7 -5
View File
@@ -4,9 +4,9 @@ import { applyAppConfig } from '@/config/apply-config'
import { startPwaManifest } from '@/modules/pwa/manifest'
import { createVueApp } from '@/app/createApp'
import { setupRouterGuards } from '@/app/setupRouter'
import router from '@/router'
import { applyProjectTheme } from '@/utils/config'
import { useSettingsStore } from '@/store/settingsStore'
import { useUserStore } from '@/store/userStore'
import { getToken } from '@/utils'
type BootWindow = Window & {
@@ -98,12 +98,14 @@ export async function bootstrapApp() {
setupRouterGuards()
if (getToken()) {
await useUserStore().getMyInfo()
}
app.mount('#app')
await router.isReady()
if (!getToken() && router.currentRoute.value.name !== 'login') {
await router.replace({ name: 'login' })
}
;(window as BootWindow).__APP_BOOTSTRAPPED__ = true
clearBootTimeout()
sessionStorage.removeItem('__APP_BOOT_RECOVERY_DONE__')