增加一些页面配置,目前还属于初期开发阶段

This commit is contained in:
2025-12-12 19:08:35 +08:00
parent 58dc3fe3d0
commit 52bfe51aa4
14 changed files with 111 additions and 254 deletions

24
src/views/NotFound.vue Normal file
View File

@@ -0,0 +1,24 @@
<script setup>
import { onMounted } from 'vue'
import { useRoute } from 'vue-router'
import getConfig from '@/utils/config'
const route = useRoute()
const config = getConfig()
onMounted(() => {
document.title = '页面未找到 - ' + config.title
document.body.style.backgroundColor = '#000'
document.body.style.color = '#fff'
if (window.gtag) {
window.gtag('event', 'page_view', {
page_path: route.path,
page_title: '404 - Page Not Found'
})
}
})
</script>
<template>
<h1>404 - Page Not Found</h1>
</template>