App.vue 549 B

123456789101112131415161718192021
  1. <template>
  2. <RouterView />
  3. <Toaster />
  4. <CookieBanner />
  5. <CompleteProfileModal
  6. v-if="authStore.user"
  7. :is-open="authStore.showCompleteProfile"
  8. :user="authStore.user"
  9. @complete="authStore.onProfileComplete"
  10. />
  11. </template>
  12. <script setup lang="ts">
  13. import { Toaster } from "vue-sonner";
  14. import { useAuthStore } from "@/stores/auth";
  15. import CompleteProfileModal from "@/components/CompleteProfileModal.vue";
  16. import CookieBanner from "@/components/CookieBanner.vue";
  17. const authStore = useAuthStore();
  18. authStore.init();
  19. </script>