From 50734bf03097f4543cbad6628bee77f12b40062d Mon Sep 17 00:00:00 2001 From: CaptainB Date: Tue, 18 Jan 2022 20:13:11 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E5=AE=9A=E4=B9=89):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=90=8C=E6=AD=A5=E5=A4=87=E6=B3=A8=E5=92=8C?= =?UTF-8?q?=E4=BE=9D=E8=B5=96=E5=85=B3=E7=B3=BBcheckbox=E4=B8=8D=E8=83=BD?= =?UTF-8?q?=E5=8F=96=E6=B6=88=E7=9A=84=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../definition/components/complete/EditCompleteDubboApi.vue | 4 ++-- .../definition/components/complete/EditCompleteHTTPApi.vue | 5 ++--- .../definition/components/complete/EditCompleteSQLApi.vue | 4 ++-- .../definition/components/complete/EditCompleteTCPApi.vue | 4 ++-- 4 files changed, 8 insertions(+), 9 deletions(-) diff --git a/frontend/src/business/components/api/definition/components/complete/EditCompleteDubboApi.vue b/frontend/src/business/components/api/definition/components/complete/EditCompleteDubboApi.vue index 2d29c69a7d..2eab4fc3df 100644 --- a/frontend/src/business/components/api/definition/components/complete/EditCompleteDubboApi.vue +++ b/frontend/src/business/components/api/definition/components/complete/EditCompleteDubboApi.vue @@ -340,8 +340,8 @@ export default { create(row) { // 创建新版本 this.basisData.versionId = row.id; - this.basisData.newVersionRemark = !!this.basisData.remark; - this.basisData.newVersionDeps = this.$refs.apiOtherInfo.relationshipCount > 0; + this.$set(this.basisData, 'newVersionRemark', !!this.basisData.remark); + this.$set(this.basisData, 'newVersionDeps', this.$refs.apiOtherInfo.relationshipCount > 0); if (this.$refs.apiOtherInfo.relationshipCount > 0 || this.basisData.remark) { this.createNewVersionVisible = true; } else { diff --git a/frontend/src/business/components/api/definition/components/complete/EditCompleteHTTPApi.vue b/frontend/src/business/components/api/definition/components/complete/EditCompleteHTTPApi.vue index 29af7b1763..9c3e0460b4 100644 --- a/frontend/src/business/components/api/definition/components/complete/EditCompleteHTTPApi.vue +++ b/frontend/src/business/components/api/definition/components/complete/EditCompleteHTTPApi.vue @@ -660,9 +660,8 @@ export default { create(row) { // 创建新版本 this.httpForm.versionId = row.id; - - this.httpForm.newVersionRemark = !!this.httpForm.remark; - this.httpForm.newVersionDeps = this.$refs.apiOtherInfo.relationshipCount > 0; + this.$set(this.httpForm, 'newVersionRemark', !!this.httpForm.remark); + this.$set(this.httpForm, 'newVersionDeps', this.$refs.apiOtherInfo.relationshipCount > 0); if (this.$refs.apiOtherInfo.relationshipCount > 0 || this.httpForm.remark) { this.createNewVersionVisible = true; } else { diff --git a/frontend/src/business/components/api/definition/components/complete/EditCompleteSQLApi.vue b/frontend/src/business/components/api/definition/components/complete/EditCompleteSQLApi.vue index 59469e222c..ee983e17e2 100644 --- a/frontend/src/business/components/api/definition/components/complete/EditCompleteSQLApi.vue +++ b/frontend/src/business/components/api/definition/components/complete/EditCompleteSQLApi.vue @@ -346,8 +346,8 @@ export default { create(row) { // 创建新版本 this.basisData.versionId = row.id; - this.basisData.newVersionRemark = !!this.basisData.remark; - this.basisData.newVersionDeps = this.$refs.apiOtherInfo.relationshipCount > 0; + this.$set(this.basisData, 'newVersionRemark', !!this.basisData.remark); + this.$set(this.basisData, 'newVersionDeps', this.$refs.apiOtherInfo.relationshipCount > 0); if (this.$refs.apiOtherInfo.relationshipCount > 0 || this.basisData.remark) { this.createNewVersionVisible = true; } else { diff --git a/frontend/src/business/components/api/definition/components/complete/EditCompleteTCPApi.vue b/frontend/src/business/components/api/definition/components/complete/EditCompleteTCPApi.vue index f040a4c596..e0a26f0fce 100644 --- a/frontend/src/business/components/api/definition/components/complete/EditCompleteTCPApi.vue +++ b/frontend/src/business/components/api/definition/components/complete/EditCompleteTCPApi.vue @@ -468,8 +468,8 @@ export default { create(row) { // 创建新版本 this.basisData.versionId = row.id; - this.basisData.newVersionRemark = !!this.basisData.remark; - this.basisData.newVersionDeps = this.$refs.apiOtherInfo.relationshipCount > 0; + this.$set(this.basisData, 'newVersionRemark', !!this.basisData.remark); + this.$set(this.basisData, 'newVersionDeps', this.$refs.apiOtherInfo.relationshipCount > 0); if (this.$refs.apiOtherInfo.relationshipCount > 0 || this.basisData.remark) { this.createNewVersionVisible = true; } else {