feat: add wishlist
This commit is contained in:
+1
-16
@@ -1,20 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
const { data: session, refresh } = await useFetch<{ unlocked: boolean }>('/api/session', { key: 'session' })
|
||||
const unlocked = computed(() => !!session.value?.unlocked)
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<UApp>
|
||||
<template v-if="unlocked">
|
||||
<UMain>
|
||||
<UContainer class="py-8">
|
||||
<NuxtPage />
|
||||
</UContainer>
|
||||
</UMain>
|
||||
|
||||
<LogModal />
|
||||
</template>
|
||||
|
||||
<PasswordModal v-else @unlocked="refresh()" />
|
||||
<NuxtPage />
|
||||
</UApp>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user