error.vue 632 B

1234567891011121314151617181920212223242526
  1. <template>
  2. <div class="h-screen flex items-center justify-center flex-col">
  3. <img src="@/assets/icon-link-error.png" alt="" class="w-40">
  4. <div class="text-xl mt-4 text-gray-600 whitespace-pre-wrap text-center">
  5. <div v-html="msg"></div>
  6. </div>
  7. </div>
  8. </template>
  9. <script setup>
  10. import { ref, reactive, onMounted, computed, watch } from 'vue';
  11. import { useRoute, useRouter } from 'vue-router';
  12. import { request } from '@/utils';
  13. const [route, router] = [useRoute(), useRouter()];
  14. const msg = ref(route.query.msg || '未知错误');
  15. document.title = '错误';
  16. </script>
  17. <style lang='scss' scoped>
  18. </style>