<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>