403.vue 668 B

12345678910111213141516171819202122232425
  1. <template>
  2. <div class="error-page">
  3. <div class="img" :style="`background-image: url(${svg403});`"/>
  4. <div class="content">
  5. <h1>403</h1>
  6. <div class="desc">抱歉,你无权访问该页面</div>
  7. <div class="actions">
  8. <el-button type="primary" block @click="goToHome">返回首页</el-button>
  9. </div>
  10. </div>
  11. </div>
  12. </template>
  13. <script setup>
  14. import router from '~src/router/index';
  15. import svg403 from '~src/assets/view/403.svg';
  16. const goToHome = () => {
  17. router.push({path: '/'});
  18. }
  19. </script>
  20. <style lang="scss" scoped>
  21. @import "../../styles/error/style.scss";
  22. </style>