added pwa modal in app.vue
This commit is contained in:
+15
-3
@@ -1,15 +1,28 @@
|
||||
<script setup>
|
||||
import { VueQueryDevtools } from "@tanstack/vue-query-devtools";
|
||||
|
||||
// state
|
||||
|
||||
const {
|
||||
$updateAvailable: updateAvailable,
|
||||
$handleUpdate: handleUpdate,
|
||||
$handleUpdateAvailable: handleUpdateAvailable,
|
||||
} = useNuxtApp();
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div>
|
||||
<LoadingIndicator />
|
||||
|
||||
<NuxtRouteAnnouncer />
|
||||
<NuxtPwaManifest />
|
||||
|
||||
<UpdatePwaModal
|
||||
:isShow="updateAvailable"
|
||||
@update="handleUpdate"
|
||||
@close="handleUpdateAvailable"
|
||||
/>
|
||||
|
||||
<NuxtLayout>
|
||||
|
||||
<ToastProvider>
|
||||
<NuxtPage />
|
||||
|
||||
@@ -21,6 +34,5 @@ import { VueQueryDevtools } from "@tanstack/vue-query-devtools";
|
||||
</NuxtLayout>
|
||||
|
||||
<VueQueryDevtools dir="ltr" buttonPosition="bottom-left" />
|
||||
|
||||
</div>
|
||||
</template>
|
||||
|
||||
Reference in New Issue
Block a user