Remodel for Mobile

This commit is contained in:
2025-11-20 12:38:38 +01:00
parent 5f6df7c69d
commit 24f576aeaa
13 changed files with 1226 additions and 595 deletions

View File

@@ -1,9 +1,9 @@
export default defineNuxtRouteMiddleware(async (to, _from) => {
const router = useRouter()
console.log(await useCapacitor().getIsPhone())
console.log(useCapacitor().getIsNative())
if(await useCapacitor().getIsPhone() && _from.path !== '/mobile') {
if(useCapacitor().getIsNative() && _from.path !== '/mobile') {
return router.push('/mobile')
}
})