用this.$parent调用兄弟组件的方法
2023-06-25 本文已影响0人
Frank_Fang
用this.$parent调用兄弟组件的方法
selectQuestion (id) {
if (this.$parent.$refs.questionTree) {
this.$parent.$refs.questionTree.selectQuestion({ id: id, type: '2' })
}
this.closeDialog()
},