404.vue 252 Bytes Edit Raw Blame History 1 2 3 4 5 6 7 8 9 10 11 12 13 <template> <Error @error-click="errorClick()" /> </template> <script setup lang="ts"> import { Error } from '@/components/Error' import { useRouter } from 'vue-router' const { push } = useRouter() const errorClick = () => { push('/') } </script>