mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-29 09:02:03 +00:00
fix(nuxt): add error event declaration to the <NuxtErrorBoundary>
component (#6141)
This commit is contained in:
parent
a585086c8b
commit
e08a493bac
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user