How to get the await return value

want to achieve such an effect

async getInfo(id) {
    let params = {
         id
     }
      let res = await getdeviceInfo(params);
       return res.data
      }

then you can pass

console.log (getInfo) gets the return value directly instead of calling the then method to get the return value

Apr.07,2021

await getinfo (id) or getinfo (id). Then (e = > e)


(async () = > {console.log (await getInto (id));}) ()

Menu