diff --git a/api-test/frontend/src/business/definition/components/complete/EditCompleteHTTPApi.vue b/api-test/frontend/src/business/definition/components/complete/EditCompleteHTTPApi.vue index ef4b9771d9..48412aedd9 100644 --- a/api-test/frontend/src/business/definition/components/complete/EditCompleteHTTPApi.vue +++ b/api-test/frontend/src/business/definition/components/complete/EditCompleteHTTPApi.vue @@ -871,6 +871,13 @@ export default { this.citedScenarioCount = response.data; } }); + }, + getCaseCount() { + apiTestCaseCount({id: this.httpForm.id}).then(response => { + if (response.data > 0) { + this.httpForm.caseTotal = response.data; + } + }); } }, @@ -904,6 +911,7 @@ export default { this.getVersionHistory(); this.getSyncRule(); this.getCitedScenarioCount(); + this.getCaseCount(); } }, mounted() {