@@ -0,0 +1,5 @@
|
||||
<script setup lang="ts"></script>
|
||||
|
||||
<template>
|
||||
<div>123</div>
|
||||
</template>
|
||||
@@ -0,0 +1,28 @@
|
||||
<script setup lang="ts">
|
||||
import LogInCom from "~/components/login/LogInCom.vue";
|
||||
import SignUpCom from "~/components/login/SignUpCom.vue";
|
||||
import { useUserStore } from "~/stores";
|
||||
|
||||
definePageMeta({
|
||||
layout: "login-view"
|
||||
});
|
||||
|
||||
const route = useRoute();
|
||||
const userStore = useUserStore();
|
||||
const { isOnline } = storeToRefs(userStore);
|
||||
|
||||
const isSignUp = computed(() => route.query._loginAction === "signUp");
|
||||
|
||||
onMounted(() => {
|
||||
if (isOnline.value) {
|
||||
navigateTo("/");
|
||||
}
|
||||
});
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="w-full flex justify-center">
|
||||
<SignUpCom v-if="isSignUp" />
|
||||
<LogInCom v-else />
|
||||
</div>
|
||||
</template>
|
||||
Reference in New Issue
Block a user