NoPer.vue 686 B

1234567891011121314151617181920212223242526272829303132
  1. <template>
  2. <div class="no-per">
  3. <a-result status="warning" title="抱歉,您无权限访问此页面">
  4. <template #subtitle>
  5. 您没有权限访问此页面,请联系管理员
  6. </template>
  7. <template #extra>
  8. <a-space>
  9. <a-button type='primary' @click="handleBack">返回首页</a-button>
  10. </a-space>
  11. </template>
  12. </a-result>
  13. </div>
  14. </template>
  15. <script setup>
  16. import { useRouter } from 'vue-router';
  17. const router = useRouter();
  18. const handleBack = () => {
  19. router.push('/');
  20. }
  21. </script>
  22. <style lang="css" scoped>
  23. .no-per {
  24. height: 90vh;
  25. display: flex;
  26. justify-content: center;
  27. align-items: center;
  28. }
  29. </style>