2b69686795
- 新增404页面,优化未找到页面体验,避免被搜索引擎索引 - 增加文件代理接口,隐藏真实文件服务器地址,支持文件请求代理 - 实现/article、/case、/product及/page动态路由兼容列表与详情展示 - 添加动态CMS页面兼容入口处理旧式路径,统一路由与SEO设置 - 新增模板1、模板7、模板2、模板3关于我们页面,实现多模板支持 - 模板增强支持CMS单页内容加载及SEO信息动态设置 - 配置环境变量及Git忽略文件规则辅助开发和构建环境管理
30 lines
841 B
Vue
30 lines
841 B
Vue
<template>
|
||
<div class="min-h-screen flex items-center justify-center bg-gray-50">
|
||
<div class="text-center px-6">
|
||
<p class="text-7xl font-bold text-gray-300 mb-4">404</p>
|
||
<h1 class="text-2xl font-semibold text-gray-800 mb-3">页面未找到</h1>
|
||
<p class="text-gray-500 mb-8">抱歉,您访问的页面不存在或已被移除。</p>
|
||
<NuxtLink
|
||
to="/"
|
||
class="inline-flex items-center justify-center px-6 py-2.5 bg-blue-600 text-white rounded-lg hover:bg-blue-700 transition-colors"
|
||
>
|
||
返回首页
|
||
</NuxtLink>
|
||
</div>
|
||
</div>
|
||
</template>
|
||
|
||
<script setup lang="ts">
|
||
/**
|
||
* 404 页面(使用 blank 布局避免 Header/Footer 干扰)
|
||
*/
|
||
definePageMeta({
|
||
layout: 'blank'
|
||
})
|
||
|
||
// 错误页禁止被搜索引擎收录
|
||
useSeoMeta({
|
||
robots: 'noindex, nofollow'
|
||
})
|
||
</script>
|