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

fix: 修复遗漏的返回值类型

上级 cc517617
...@@ -280,19 +280,19 @@ ...@@ -280,19 +280,19 @@
const error = err as UniCloudError const error = err as UniCloudError
this.notify(error.errMsg, '错误') this.notify(error.errMsg, '错误')
}) })
}, },
async dbMultiSend() { async dbMultiSend() : Promise<void> {
const db = uniCloud.databaseForJQL() const db = uniCloud.databaseForJQL()
const temp1 = db.collection('type') const temp1 = db.collection('type')
.where( .where(
'tag == "default-tag"' 'tag == "default-tag"'
).getTemp() ).getTemp()
const temp2 = db.collection('type') const temp2 = db.collection('type')
.where( .where(
'tag == "default-tag"' 'tag == "default-tag"'
).getTemp() ).getTemp()
await db.multiSend(temp1, temp2) await db.multiSend(temp1, temp2)
.then<void>(res => { .then<void>(res => {
uni.hideLoading() uni.hideLoading()
let successCount = 0 let successCount = 0
for (let i = 0; i < res.dataList.length; i++) { for (let i = 0; i < res.dataList.length; i++) {
...@@ -305,14 +305,14 @@ ...@@ -305,14 +305,14 @@
} }
} }
this.multiSendSuccessCount = successCount this.multiSendSuccessCount = successCount
this.notify(`合并查询成功,成功查询的语句条数为:${successCount}`, '提示') this.notify(`合并查询成功,成功查询的语句条数为:${successCount}`, '提示')
}) })
.catch<void>((err : any | null) => { .catch<void>((err : any | null) => {
uni.hideLoading() uni.hideLoading()
const error = err as UniCloudError const error = err as UniCloudError
console.error(err) console.error(err)
this.notify(error.errMsg, '错误') this.notify(error.errMsg, '错误')
}) })
} }
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册