修复 前端NotFound组件销毁标题不重置的问题
This commit is contained in:
@@ -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>
|
||||||
|
|||||||
Reference in New Issue
Block a user