1405/04/10-fix bug iphone show
This commit is contained in:
+12
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user