in a normal click event method, a promise object is called. Is return the promise object itself or its result?
<Button @click="javaCodeSubmit"></Button>
javaCodeSubmit(){
return genJavaCode()
.then(res => {
this.showGenJava = false
})
}