1405/04/10-fix bug iphone show

This commit is contained in:
2026-07-01 12:49:43 +03:30
parent a133f6e11d
commit 40c8d21a0d
20 changed files with 315 additions and 71 deletions
+12
View File
@@ -112,6 +112,7 @@ import {
import { useDraggableFloatingButton } from '@/utils/useDraggableFloatingButton'
import AppCreditLink from '@/components/AppCreditLink.vue'
import { useRoute } from 'vue-router'
import { recoverMobileViewportAfterAuth } from '@/layouts/composables/useMobileScrollReset'
const VersionUpdateModal = defineAsyncComponent(
() => import('@/modules/version/VersionUpdateModal.vue')
@@ -251,6 +252,17 @@ watch(showSplash, (visible) => {
}
})
watch(
() => route.name,
(toName, fromName) => {
if (isDesktop.value) return
if (fromName === 'login' || toName === 'home') {
recoverMobileViewportAfterAuth()
}
},
{ flush: 'post' },
)
</script>
<style lang="less">