<template>
  <div class="content">
    <el-result icon="primary" title="找不到页面" sub-title="请重新尝试其他页面">
    </el-result>
    <div class="operation-row">
      <el-button key="back" type="primary" @click="back"> 返回主页 </el-button>
    </div>
  </div>
</template>

<script lang="ts" setup>
  import { useRouter } from 'vue-router';

  const router = useRouter();
  const back = () => {
    // warning： Go to the node that has the permission
    router.push({ name: 'Workplace' });
  };
</script>

<style scoped lang="scss">
  .content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
  }
</style>
