Added Phone Redirect
This commit is contained in:
@@ -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)
|
||||||
router.push("/")
|
|
||||||
|
if(await useCapacitor().getIsPhone()) {
|
||||||
|
router.push("/mobile")
|
||||||
|
} else {
|
||||||
|
router.push("/")
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user