wip
This commit is contained in:
13
src/App.vue
13
src/App.vue
@@ -1,20 +1,18 @@
|
||||
<script setup lang="ts">
|
||||
import ChatView from '@/views/ChatView.vue'
|
||||
import LoginView from '@/views/LoginView.vue'
|
||||
import { useAuthStore } from '@/stores/auth.ts'
|
||||
import { computed } from 'vue'
|
||||
import SignInView from '@/views/SignInView.vue'
|
||||
|
||||
const authStore = useAuthStore()
|
||||
|
||||
const isAuth = computed(() => !!authStore.token)
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<v-app>
|
||||
<v-main class="chat-fullscreen">
|
||||
<v-container fluid class="h-100 pa-0">
|
||||
<chat-view v-if="isAuth" />
|
||||
<login-view v-else />
|
||||
<chat-view v-if="authStore.isAuth" />
|
||||
<sign-in-view v-else />
|
||||
<!-- <sign-in-view />-->
|
||||
</v-container>
|
||||
</v-main>
|
||||
</v-app>
|
||||
@@ -24,7 +22,4 @@ const isAuth = computed(() => !!authStore.token)
|
||||
.chat-fullscreen {
|
||||
height: 100vh;
|
||||
}
|
||||
.message-shaped {
|
||||
border-radius: 0 24px;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user