1405/04/10-fix bugs

This commit is contained in:
2026-07-01 18:16:12 +03:30
parent 4fa2c0d57d
commit c3aaeaf91a
33 changed files with 832 additions and 1051 deletions
+8
View File
@@ -13,6 +13,7 @@ import {
setFingerTimeOut,
setHasFingerPrint
} from '@/app/authBoot'
import { recoverMobileViewportAfterAuth } from '@/layouts/composables/useMobileScrollReset'
export function setupRouterGuards() {
const userStore = useUserStore()
@@ -115,5 +116,12 @@ export function setupRouterGuards() {
}
})
router.afterEach((to, from) => {
if (document.documentElement.classList.contains('app-layout--desktop')) return
if (from.name === 'login') {
recoverMobileViewportAfterAuth()
}
})
watch(currentRoute, async () => (userStore.userInfo ? '' : await start()))
}