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

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-1e4bc9c-44e68.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-1e4bc9c-44e68.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?