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