refactor: migrate to nuxt
This commit is contained in:
27
app.vue
Normal file
27
app.vue
Normal file
@@ -0,0 +1,27 @@
|
||||
<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: '好的,今天我们来做菜!',
|
||||
},
|
||||
],
|
||||
})
|
||||
|
||||
// installPrompt()
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<VitePwaManifest />
|
||||
<NuxtLayout>
|
||||
<NuxtLoadingIndicator />
|
||||
<NuxtPage />
|
||||
</NuxtLayout>
|
||||
</template>
|
||||
Reference in New Issue
Block a user