You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

38 lines
939 B

6 months ago
<script setup>
import {ref} from "vue";
import { linkNavigateTo } from '~/utils/util'
//窗口的高度
const { getWindowHeight } = useScrollHeight()
const ScrollHeight = getWindowHeight()
</script>
<template>
<div class="error-page" :style="{ height: ScrollHeight + 'px' }">
<div>
<img src="~assets/images/404.png" alt="" >
<p class="title">抱歉您访问的页面出错了</p>
<span class="small">您可能输错了网址或该网页已被删除不存在等</span>
</div>
<el-button plain @click="linkNavigateTo('/')">返回首页</el-button>
</div>
</template>
<style lang="scss" scoped>
.error-page{
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
.title{
margin-top: 20px;
font-size: 24px;
color: #282828;
}
.small{
margin: 12px 0 24px 0;
font-size: 14px;
color: #969696;
display: inline-block;
}
}
</style>