refactor: migrate to nuxt

This commit is contained in:
YunYouJun
2023-07-30 03:08:42 +08:00
parent c23f39e8c0
commit 0dfec1831b
90 changed files with 7864 additions and 3962 deletions

27
app.vue Normal file
View 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>