mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-25 23:22:02 +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'
|
import { useNuxtApp } from '#app'
|
||||||
|
|
||||||
export default defineComponent({
|
export default defineComponent({
|
||||||
|
emits: {
|
||||||
|
error (_error: unknown) {
|
||||||
|
return true
|
||||||
|
}
|
||||||
|
},
|
||||||
setup (_props, { slots, emit }) {
|
setup (_props, { slots, emit }) {
|
||||||
const error = ref(null)
|
const error = ref(null)
|
||||||
const nuxtApp = useNuxtApp()
|
const nuxtApp = useNuxtApp()
|
||||||
|
Loading…
Reference in New Issue
Block a user