Vue custom event “on” gets called twice

前端 未结 0 606
被撕碎了的回忆
被撕碎了的回忆 2021-01-22 16:54

I have an interesting "bug". I created a custom event in the child component:

     this.$root.$emit(\'addMealToDay\', parseInt(args));

相关标签:
回答
  • 消灭零回复
提交回复
热议问题