diff --git a/test-track/frontend/src/business/plan/view/comonents/api/TestPlanApiCaseList.vue b/test-track/frontend/src/business/plan/view/comonents/api/TestPlanApiCaseList.vue index be7c79a717..06f998d2d1 100644 --- a/test-track/frontend/src/business/plan/view/comonents/api/TestPlanApiCaseList.vue +++ b/test-track/frontend/src/business/plan/view/comonents/api/TestPlanApiCaseList.vue @@ -366,9 +366,11 @@ export default { created: function () { this.getMaintainerOptions(); this.initTable(); + this.$EventBus.$on("API_TEST_ERROR", this.handleTestEnd); this.$EventBus.$on("API_TEST_END", this.handleTestEnd); }, destroyed() { + this.$EventBus.$off("API_TEST_ERROR", this.handleTestEnd); this.$EventBus.$off("API_TEST_END", this.handleTestEnd); }, activated() {