Files
cook/app.vue
2023-07-30 14:03:58 +08:00

30 lines
593 B
Vue

<script setup lang="ts">
import { installPrompt } from './utils/pwa'
import { appName } from '~/constants'
// https://github.com/vueuse/head
// you can use this to manipulate the document head in any components,
// they will be rendered correctly in the html results with vite-ssg
useHead({
title: appName,
meta: [
{
name: 'description',
content: '好的,今天我们来做菜!',
},
],
})
onMounted(() => {
installPrompt()
})
</script>
<template>
<VitePwaManifest />
<NuxtLayout>
<NuxtLoadingIndicator />
<NuxtPage />
</NuxtLayout>
</template>