then的值怎么在外层拿到用 async和await方法 请详细写一下谢谢!
verifyEnt({...name}).then((res)=>{
return res.message
})
async function fun(){
return 123
}
async function fun2(){
console.log(await fun())
}
fun2()
结果 123
verifyEnt({ ...name }).then((res) => {
return res.message
})
async function init () {
let res = await verifyEnt({ ...name })
}