修复 前端NotFound组件销毁标题不重置的问题

This commit is contained in:
2024-10-12 11:00:18 +08:00
parent 607f0a7a4d
commit 65a2ad75dd

View File

@@ -1,8 +1,13 @@
<script setup lang='ts'> <script setup lang='ts'>
import { onMounted } from 'vue'; import { onMounted, onUnmounted } from 'vue';
onMounted(async () => { onMounted(async () => {
document.title = '404 不存在的页面'; document.title = '404 不存在的页面';
}) })
onUnmounted(async () => {
document.title = '特恩(TONE)'
})
</script> </script>
<template> <template>
<div class="bg-default-bg fixed inset-0 w-full h-full -z-10 dark:bg-[#222]"></div> <div class="bg-default-bg fixed inset-0 w-full h-full -z-10 dark:bg-[#222]"></div>