父页面
<Category ref="mychild"/>
在父级周期定义事件比如点击执行子组件方法
this.$refs.mychild.parentHandleclick(this.msgSty);
上边的parentHandleclick就是子组件里的方法
父页面
<Category ref="mychild"/>
在父级周期定义事件比如点击执行子组件方法
this.$refs.mychild.parentHandleclick(this.msgSty);
上边的parentHandleclick就是子组件里的方法