chore: remove @vueuse/head and cleanup

This commit is contained in:
Anthony Fu committed 2021-08-16 09:41:22 +08:00
1 parent 7d3abe7aac
commit 541f9fbc01
8 files changed
+2 -26

No files matched your search

-14
View File
@@ -1,17 +1,3 @@
<script setup lang="ts">
import { useHead } from '@vueuse/head'
// 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: 'Vitesse Lite',
meta: [
{ name: 'description', content: 'Opinionated Vite Starter Template' },
],
})
</script>
<template>
<main class="px-4 py-10 text-center text-gray-700 dark:text-gray-200">
<router-view />
-3
View File
@@ -3,7 +3,6 @@ import 'vue-global-api'
import { createApp } from 'vue'
import { createRouter, createWebHistory } from 'vue-router'
import routes from 'virtual:generated-pages'
import { createHead } from '@vueuse/head'
import App from './App.vue'
// windicss layers
@@ -17,7 +16,5 @@ const router = createRouter({
history: createWebHistory(),
routes,
})
const head = createHead()
app.use(head)
app.use(router)
app.mount('#app')
-5
View File
@@ -3,8 +3,3 @@
Not Found
</div>
</template>
<route lang="yaml">
meta:
layout: 404
</route>