敌敌畏
敌敌畏
  • 发布:2021-09-27 20:31
  • 更新:2021-09-27 20:31
  • 阅读:440

await没有阻塞执行

分类:uni-app
    async listdevicestauts() {  
                uni.showLoading({  
                    title: "同步状态中...",  
                });  
                await console.log("开始云函数");  
                 let res = await uniCloud.callFunction({  
                    name: "aliyun-iot-devicestatus",  
                    data: {  
                        ProductKey: "",  
                    },  
                });   
                console.log(res)  
                await console.log("结束云函数");  
                uni.hideLoading();  
            },


为什么云函数返回没有在“开始云函数”和“结束云函数之间

2021-09-27 20:31 负责人:无 分享
已邀请:

该问题目前已经被锁定, 无法添加新回复