当在我的按钮上触发v- on :click事件时,我想在Vue组件中的方法对象中运行一个函数。不幸的是,由于需要发出自定义事件,我在控制台中得到了以下错误:未定义$emit。如何在方法对象中的函数中发出自定义事件?我的模板中的按钮
<button class="edit-recipe-modal-btn"
然后使用带有多个数据的v- data表,如果onclick排序在控制台"TypeError:无法读取未定义的属性'key‘“中有消息,请帮助我。vue_2.6.11.min.js:6 TypeError: Cannot read property 'key' of undefined at vue_2.6.11.min.js:6
at x (v