diff --git a/api-test/frontend/src/business/automation/scenario/ApiScenarioModule.vue b/api-test/frontend/src/business/automation/scenario/ApiScenarioModule.vue index aa0191a24a..fdeadde8e2 100644 --- a/api-test/frontend/src/business/automation/scenario/ApiScenarioModule.vue +++ b/api-test/frontend/src/business/automation/scenario/ApiScenarioModule.vue @@ -156,6 +156,7 @@ export default { this.filter(); }, 'condition.trashEnable'() { + this.param = {}; this.$emit('enableTrash', this.condition.trashEnable); }, relevanceProjectId() { @@ -163,17 +164,19 @@ export default { }, isTrashData() { this.condition.trashEnable = this.isTrashData; - this.list(); + this.param = {}; }, }, created(){ this.$EventBus.$on("scenarioConditionBus", (param)=>{ this.param = param; + this.list(); }) }, beforeDestroy() { this.$EventBus.$off("scenarioConditionBus", (param)=>{ this.param = param; + this.list(); }) }, methods: { diff --git a/api-test/frontend/src/business/definition/components/module/ApiModule.vue b/api-test/frontend/src/business/definition/components/module/ApiModule.vue index 79f463c626..c58b13f6b5 100644 --- a/api-test/frontend/src/business/definition/components/module/ApiModule.vue +++ b/api-test/frontend/src/business/definition/components/module/ApiModule.vue @@ -156,6 +156,7 @@ export default { this.list(); }, 'condition.trashEnable'() { + this.param = {}; this.$emit('enableTrash', this.condition.trashEnable); }, relevanceProjectId() { @@ -165,6 +166,7 @@ export default { this.list(); }, isTrashData() { + this.param = {}; this.condition.trashEnable = this.isTrashData; this.list(); }, @@ -177,11 +179,13 @@ export default { created(){ this.$EventBus.$on("apiConditionBus", (param)=>{ this.param = param; + this.list(); }) }, beforeDestroy() { this.$EventBus.$off("apiConditionBus", (param)=>{ this.param = param; + this.list(); }) }, methods: {