When a promise object is called within the method of a click event, what does return go out?

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
    })
 }

Jan.30,2022

is also a promise object, of course, you can add then method or catch method after that


Return Promise Then

you can see from the figure above that return is a Promise object.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b30330-2bd0d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b30330-2bd0d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?