Added Phone Redirect

This commit is contained in:
2025-03-28 15:00:56 +01:00
parent 4d2401ff59
commit 548e85a00a

View File

@@ -1,6 +1,7 @@
<script setup > <script setup >
import {useProfileStore} from "~/stores/profile.js"; import {useProfileStore} from "~/stores/profile.js";
import {useCapacitor} from "~/composables/useCapacitor.js";
definePageMeta({ definePageMeta({
layout: "notLoggedIn" layout: "notLoggedIn"
@@ -64,7 +65,14 @@ const onSubmit = async (data) => {
} else { } else {
//console.log("Login Successful") //console.log("Login Successful")
profileStore.initializeData(user.id) profileStore.initializeData(user.id)
if(await useCapacitor().getIsPhone()) {
router.push("/mobile")
} else {
router.push("/") router.push("/")
}
} }