提交 cc517617 编写于 作者: 雪洛's avatar 雪洛

fix: 修复multiSend测试例缺少async await的Bug

上级 3dc70b16
......@@ -281,7 +281,7 @@
this.notify(error.errMsg, '错误')
})
},
dbMultiSend() {
async dbMultiSend() {
const db = uniCloud.databaseForJQL()
const temp1 = db.collection('type')
.where(
......@@ -291,7 +291,7 @@
.where(
'tag == "default-tag"'
).getTemp()
db.multiSend(temp1, temp2)
await db.multiSend(temp1, temp2)
.then<void>(res => {
uni.hideLoading()
let successCount = 0
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册