Browse Source

404

master_hella_20240701
yufei0306 6 months ago
parent
commit
1562ee7fc0
  1. 2
      src/locales/zh-CN.ts
  2. 1
      src/views/error/404.vue

2
src/locales/zh-CN.ts

@ -79,7 +79,7 @@ export default {
}, },
error: { error: {
noPermission: `抱歉,您无权访问此页面。`, noPermission: `抱歉,您无权访问此页面。`,
pageError: '抱歉,您访问的页面不存在', pageError: '抱歉,您访问的页面不存在',
networkError: '抱歉,服务器报告错误。', networkError: '抱歉,服务器报告错误。',
returnToHome: '返回首页' returnToHome: '返回首页'
}, },

1
src/views/error/404.vue

@ -1,6 +1,5 @@
<template> <template>
<Error @error-click="push('/')" /> <Error @error-click="push('/')" />
<div>哈哈哈哈</div>
</template> </template>
<script lang="ts" setup> <script lang="ts" setup>
defineOptions({ name: 'Error404' }) defineOptions({ name: 'Error404' })

Loading…
Cancel
Save