Files
Situation-Awareness-Platfor…/src/views/ErrorPage/index.vue

19 lines
376 B
Vue
Raw Normal View History

2025-03-12 18:41:20 +08:00
<template>
<div class="w-full h-full flex flex-center">
<Error :code="code || route.name" class="-translate-y-[60px]" />
</div>
</template>
<script setup lang="ts">
import { useRoute } from 'vue-router';
import Error from '@/components/Error/index.vue';
withDefaults(defineProps<{
code?: number | string
}>(), {
code: ''
});
const route = useRoute();
</script>