<template>
  <div class="page-container">
    <div class="text-center">
      <img src="~@/assets/images/exception/no-auth.png" alt="" />
    </div>
    <div class="text-center" style="margin-top: -20px; margin-bottom: 30px">
      <h1>抱歉，您无权访问该页面</h1>
    </div>
    <div>
      <el-button type="primary" @click="goHome">回到首页</el-button>
    </div>
  </div>
</template>

<script lang="ts" setup>
  import { useRouter } from 'vue-router';
  const router = useRouter();
  function goHome() {
    router.push('/');
  }
</script>

<style lang="scss" scoped>
  .page-container {
    width: 100%;
    border-radius: 4px;
    padding-top: 100px;
    text-align: center;
    // flex-direction: column;

    .text-center {
      h1 {
        color: var(--el-color-info);
        padding: 20px 0;
      }
    }

    img {
      width: 350px;
      margin: 0 auto;
    }
  }
</style>
