fix(nuxt): add error event declaration to the <NuxtErrorBoundary> component (#6141)

This commit is contained in:
hecateball 2022-07-26 22:36:58 +09:00 committed by GitHub
parent a585086c8b
commit e08a493bac
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -2,6 +2,11 @@ import { defineComponent, ref, onErrorCaptured } from 'vue'
import { useNuxtApp } from '#app'
export default defineComponent({
emits: {
error (_error: unknown) {
return true
}
},
setup (_props, { slots, emit }) {
const error = ref(null)
const nuxtApp = useNuxtApp()