Skip to content
Snippets Groups Projects
App.vue 437 B
<script setup lang="ts">
import cookies from '@/app/plugins/Cookie';
onMounted(() => {
  const home_uuidFromLS = cookies.get('home_uuid');
  const router = useRouter();
  if (!home_uuidFromLS) {
    router.push('/signUp');
  } else {
    router.push(`/${home_uuidFromLS}`);
  }
});
</script>

<template>
  <Suspense>
    <router-view />
    <template #fallback><BaseLoader /></template>
  </Suspense>
</template>

<style scoped></style>