there is a component that emits such an event
this.$emit("fail-to-load", this.src);
you can monitor events by writing template in vue as follows
<component @fail-to-load="failToLoad"></component>
The following two ways of writing in jsx do not listen for events
onFailToLoad={() => this.failToLoad}
nativeOnFailToLoad={() => this.failToLoad}
excuse me, how to solve this problem?