From 2c7b8563dfc4a82b9fefa861cc9f6840593e5c6a Mon Sep 17 00:00:00 2001 From: handongxun Date: Wed, 14 Apr 2021 15:21:26 +0800 Subject: [PATCH] =?UTF-8?q?update:=20unicloud-db=20=E7=BB=84=E4=BB=B6=20?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=20foreignKey=20=E5=B1=9E=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/uni-cli-shared/components/unicloud-db.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/uni-cli-shared/components/unicloud-db.vue b/packages/uni-cli-shared/components/unicloud-db.vue index 83d6a99a6..26511ced0 100644 --- a/packages/uni-cli-shared/components/unicloud-db.vue +++ b/packages/uni-cli-shared/components/unicloud-db.vue @@ -126,7 +126,7 @@ export default { type: [Boolean, String], default: false }, - exceptForeignKey: { + foreignKey: { type: String, default: '' }, @@ -482,8 +482,8 @@ export default { if (this.field) { db = db.field(this.field) } - if (this.exceptForeignKey) { - db = db.exceptForeignKey(this.exceptForeignKey) + if (this.foreignKey) { + db = db.foreignKey(this.foreignKey) } if (this.groupby) { db = db.groupBy(this.groupby) -- GitLab