提交 8ab611e0 编写于 作者: d-u-a's avatar d-u-a

fix: unicloud-db组件在联表查询时调用remove方法报错的问题

上级 9f9eef9e
...@@ -546,7 +546,9 @@ export default { ...@@ -546,7 +546,9 @@ export default {
exec = exec.action(action) 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) _id: dbCmd.in(ids)
}).remove().then((res) => { }).remove().then((res) => {
success && success(res.result) success && success(res.result)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册