diff --git a/src/App.vue b/src/App.vue index 6b5d7d3..e9b3eb7 100644 --- a/src/App.vue +++ b/src/App.vue @@ -14,6 +14,12 @@ onMounted(async () => { await fetchMe() }) +async function handleLoginSuccess(): Promise { + showAdmin.value = false + currentBookId.value = null + await fetchMe() +} + function openBook(id: string): void { currentBookId.value = id showAdmin.value = false @@ -34,7 +40,7 @@ function closeAdmin(): void {