From cc51761773f66681f5ceee8527e59576f214afc0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E4=BA=9A=E7=90=AA?= Date: Fri, 24 May 2024 11:09:21 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8DmultiSend=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E4=BE=8B=E7=BC=BA=E5=B0=91async=20await=E7=9A=84Bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/API/unicloud-database/unicloud-database.uvue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/API/unicloud-database/unicloud-database.uvue b/pages/API/unicloud-database/unicloud-database.uvue index 36cb30f4..3863f25a 100644 --- a/pages/API/unicloud-database/unicloud-database.uvue +++ b/pages/API/unicloud-database/unicloud-database.uvue @@ -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(res => { uni.hideLoading() let successCount = 0 -- GitLab