From 8ab611e079f10fe3b88ee60bb10091fca56545b8 Mon Sep 17 00:00:00 2001 From: handongxun Date: Wed, 12 May 2021 14:50:17 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20unicloud-db=E7=BB=84=E4=BB=B6=E5=9C=A8?= =?UTF-8?q?=E8=81=94=E8=A1=A8=E6=9F=A5=E8=AF=A2=E6=97=B6=E8=B0=83=E7=94=A8?= =?UTF-8?q?remove=E6=96=B9=E6=B3=95=E6=8A=A5=E9=94=99=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/uni-cli-shared/components/unicloud-db.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/packages/uni-cli-shared/components/unicloud-db.vue b/packages/uni-cli-shared/components/unicloud-db.vue index 26511ced0..c5ac2137c 100644 --- a/packages/uni-cli-shared/components/unicloud-db.vue +++ b/packages/uni-cli-shared/components/unicloud-db.vue @@ -546,7 +546,9 @@ export default { exec = exec.action(action) } - exec.collection(this.collection).where({ + const collection = this.collection.indexOf(',') > 0 ? this.collection.substring(0, this.collection.indexOf(',')) : this.collection + + exec.collection(collection).where({ _id: dbCmd.in(ids) }).remove().then((res) => { success && success(res.result) -- GitLab