diff --git a/frontend/src/business/components/track/plan/components/ScheduleBatchSwitch.vue b/frontend/src/business/components/track/plan/components/ScheduleBatchSwitch.vue index 8bf460bf17..209a6aa2a0 100644 --- a/frontend/src/business/components/track/plan/components/ScheduleBatchSwitch.vue +++ b/frontend/src/business/components/track/plan/components/ScheduleBatchSwitch.vue @@ -83,6 +83,7 @@ export default { this.$post("/test/plan/schedule/Batch/updateEnable", this.schedule, () => { this.$success(this.$t('commons.modify_success')); this.close(); + this.$emit("refresh"); }); }, close() { @@ -94,7 +95,6 @@ export default { }; this.dialogFormVisible = false; removeGoBackListener(this.close); - this.$emit("refresh"); } } }