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 {