19yuke2-frontend/src/App.vue

30 lines
640 B
Vue
Raw Normal View History

2023-02-05 18:11:34 +08:00
<script setup lang="ts">
2023-07-21 18:19:53 +08:00
const { isDark } = useDarkMode()
2023-07-15 17:18:52 +08:00
2023-02-05 18:11:34 +08:00
useHead({
2023-02-07 21:58:18 +08:00
title: '合肥市南园学校19预科2班',
2023-02-05 18:11:34 +08:00
meta: [
2023-06-26 11:08:21 +08:00
{ name: 'description', content: '合肥市南园学校19预科2班纪念项目' },
2023-02-05 18:11:34 +08:00
{
name: 'theme-color',
2023-07-21 18:19:53 +08:00
content: computed(() => isDark() ? '#00aba9' : '#ffffff'),
2023-02-05 18:11:34 +08:00
},
],
link: [
{
rel: 'icon',
type: 'image/svg+xml',
2023-02-19 10:49:26 +08:00
href: 'favicon.svg',
2023-02-05 18:11:34 +08:00
},
],
})
</script>
<template>
2023-08-13 15:46:30 +08:00
<router-view v-slot="{ Component, route }">
<transition name="fade" mode="out-in">
<component :is="Component" :key="route.path" />
</transition>
</router-view>
2023-02-05 18:11:34 +08:00
</template>