Vue $emit()不能触发父组件方法,Vue子组件向父组件使用自定义事件$emit传递数据无效的坑

解决方法(1)

$emit里面自定义得值不支持驼峰式

解决方法(2)

this.$parent.orderChange(row);

使用$parent后面跟参数或者方法名

猜你喜欢

转载自blog.csdn.net/m0_61672533/article/details/128537732