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 27b6da47b1..321175b531 100644 --- a/frontend/src/business/components/api/definition/components/complete/EditCompleteDubboApi.vue +++ b/frontend/src/business/components/api/definition/components/complete/EditCompleteDubboApi.vue @@ -231,7 +231,7 @@ export default { }, getVersionHistory() { this.$get('/api/definition/versions/' + this.basisData.id, response => { - if (this.httpForm.isCopy) { + if (this.basisData.isCopy) { this.versionData = response.data.filter(v => v.versionId === this.httpForm.versionId); } else { this.versionData = response.data; 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 b9e2598f28..643e724618 100644 --- a/frontend/src/business/components/api/definition/components/complete/EditCompleteSQLApi.vue +++ b/frontend/src/business/components/api/definition/components/complete/EditCompleteSQLApi.vue @@ -235,7 +235,7 @@ export default { }, getVersionHistory() { this.$get('/api/definition/versions/' + this.basisData.id, response => { - if (this.httpForm.isCopy) { + if (this.basisData.isCopy) { this.versionData = response.data.filter(v => v.versionId === this.httpForm.versionId); } else { this.versionData = response.data; 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 b353c52f7b..b962f9e1ed 100644 --- a/frontend/src/business/components/api/definition/components/complete/EditCompleteTCPApi.vue +++ b/frontend/src/business/components/api/definition/components/complete/EditCompleteTCPApi.vue @@ -352,7 +352,7 @@ export default { }, getVersionHistory() { this.$get('/api/definition/versions/' + this.basisData.id, response => { - if (this.httpForm.isCopy) { + if (this.basisData.isCopy) { this.versionData = response.data.filter(v => v.versionId === this.httpForm.versionId); } else { this.versionData = response.data;