0👍
✅
You don’t need to use a then
method after using await
. The then
method is called after Promises but await
returns the value inside of a Promise, rather than a Promise. So, try calling emit
after the await
statement without the then
method block.
0👍
In order to catch an event in your parent, Your need created()
here is how you log the event in your parent
<template>
<do-more :selectFolder="selectFolder"></do-more>
</template>
<script>
export default {
data(){
return{
}
},
created() {
reloadTab(event){
console.log(event)
}
}
}
</script>
Source:stackexchange.com