<template>
  <div class="login">
    <div class="error">
      <img src="../errorPage/imgs/404.png" class="img" alt="" />
      <div class="tit">登录已过期或服务器错误!</div>
      <ElButton class="backBtn" type="primary" plain @click="handleGoHome">关闭页面</ElButton>
    </div>
  </div>
</template>

<script setup lang="ts">
import { ElButton } from "element-plus"

function handleGoHome() {
  window.close()
}
</script>

<style lang="scss" scoped>
.login {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  .error {
    background-color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-top: -100px;
    .img {
      width: 272px;
      height: 227px;
    }
    .tit {
      font-weight: 400;
      font-size: 16px;
      color: #999999;
      margin-top: 16px;
      margin-bottom: 20px;
    }
    .backBtn {
      width: 88px;
      height: 36px;
    }
  }
}
</style>
