You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
直接刷新页面,就是报错runtime-core.esm-bundler.js:41 [Vue warn]: Component emitted event "register" but it is neither declared in the emits option nor as an "onRegister" prop.
问题在于子组件edit.vue中使用了 defineEmits,如果不使用则不会报错
The text was updated successfully, but these errors were encountered:
父子组件代码如下
父组件index.vue:
子组件edit.vue
直接刷新页面,就是报错runtime-core.esm-bundler.js:41 [Vue warn]: Component emitted event "register" but it is neither declared in the emits option nor as an "onRegister" prop.
问题在于子组件edit.vue中使用了 defineEmits,如果不使用则不会报错
The text was updated successfully, but these errors were encountered: