403.vue 736 B

1234567891011121314151617181920212223242526272829
  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">
  7. 抱歉,你无权访问该页面
  8. </div>
  9. <div class="actions">
  10. <el-button type="primary" block @click="goToHome">
  11. 返回首页
  12. </el-button>
  13. </div>
  14. </div>
  15. </div>
  16. </template>
  17. <script setup>
  18. import router from '~src/router/index'
  19. import svg403 from '~src/assets/view/403.svg'
  20. const goToHome = () => {
  21. router.push({ path: '/' })
  22. }
  23. </script>
  24. <style lang="scss" scoped>
  25. @import "../../styles/error/style.scss";
  26. </style>