【发布时间】:2019-11-15 10:38:23
【问题描述】:
我尝试从父页面获取子页面发送的请求,但是不成功。
1.父代号
<do-more @onreloadtab="reloadTab" :selectFolder="selectFolder"></do-more>
methods: {
reloadTab:function(){
console.log('reload')
}
}
2.子代码
methods: {
async delete (row) {
let that = this
await this.$confirm("Are you sure to delete?", "confirm")
.then((config) => {
that.$emit('onreloadtab')
return
})
.catch(() => {
});
}
为什么父母不能得到发射消息?
【问题讨论】: