用this.$parent调用兄弟组件的方法
selectQuestion (id) {
if (this.$parent.$refs.questionTree) {
this.$parent.$refs.questionTree.selectQuestion({ id: id, type: '2' })
}
this.closeDialog()
},
用this.$parent调用兄弟组件的方法
selectQuestion (id) {
if (this.$parent.$refs.questionTree) {
this.$parent.$refs.questionTree.selectQuestion({ id: id, type: '2' })
}
this.closeDialog()
},
本文标题:用this.$parent调用兄弟组件的方法
本文链接:https://www.haomeiwen.com/subject/eotwydtx.html
网友评论