- 后台全面引入 Naive UI 组件库,统一 UI 规范 - 前台 usePublicApi 切换到 API 调用(GET /api/content/[key]) - 前后台数据源统一(site_content 表) - 产品线统一管理(tour/camp/course 三套编辑器) - 产品数据归一化(itinerary/faq/pricing 格式统一) - 表单提交 API 改写入 submissions 表 - 新增 submissions 标记已读 API - site-content PUT 支持 upsert - 修复前台 bug(stories 路由冲突、占位符警告、selector breadcrumb) - 消除 PageHero 类型警告(useSEO reactive 修复) - 25 个前台页面全部 HTTP 200,展示效果不变 Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
74 行
1.6 KiB
Vue
74 行
1.6 KiB
Vue
<template>
|
|
<div class="error-page">
|
|
<div class="container">
|
|
<h1 class="error-code">{{ error.statusCode }}</h1>
|
|
<p class="error-message">
|
|
{{ error.statusCode === 404 ? '页面不存在' : '出了点问题' }}
|
|
</p>
|
|
<p class="error-desc">
|
|
您访问的页面可能已移动或不存在,请返回首页继续浏览。
|
|
</p>
|
|
<NuxtLink to="/" class="error-back">返回首页</NuxtLink>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup>
|
|
defineProps({
|
|
error: { type: Object, required: true },
|
|
})
|
|
|
|
useHead({
|
|
title: '页面未找到 - 呼籁旅行',
|
|
meta: [
|
|
{ name: 'description', content: '您访问的页面不存在,请返回呼籁旅行首页继续浏览呼伦贝尔家庭定制游产品和服务。' },
|
|
{ name: 'robots', content: 'noindex' },
|
|
],
|
|
})
|
|
</script>
|
|
|
|
<style lang="less" scoped>
|
|
.error-page {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
min-height: 80vh;
|
|
text-align: center;
|
|
}
|
|
|
|
.error-code {
|
|
font-size: 80px;
|
|
font-weight: @font-weight-bold;
|
|
color: @color-primary-lighter;
|
|
line-height: 1;
|
|
}
|
|
|
|
.error-message {
|
|
margin-top: @space-md;
|
|
font-size: @font-size-xl;
|
|
color: @color-text-primary;
|
|
}
|
|
|
|
.error-desc {
|
|
margin-top: @space-sm;
|
|
color: @color-text-muted;
|
|
}
|
|
|
|
.error-back {
|
|
display: inline-block;
|
|
margin-top: @space-xl;
|
|
padding: @space-md @space-xl;
|
|
background: @color-primary;
|
|
color: #fff;
|
|
border-radius: @border-radius-md;
|
|
text-decoration: none;
|
|
font-weight: @font-weight-medium;
|
|
transition: background @transition-fast;
|
|
|
|
&:hover {
|
|
background: @color-primary-light;
|
|
color: #fff;
|
|
}
|
|
}
|
|
</style>
|