fix(接口测试): 接口定义,接口自动化列表回收站来回切换,接口树显示异常

--bug=1020906 --user=张勇 【接口测试】接口定义 / 接口自动化列表、接口定义 / 接口自动化 回收站列表,简单搜索后,再点击左侧模块树切换模块,模块树的统计就变回去了 https://www.tapd.cn/55049933/s/1316322
This commit is contained in:
zhangyong 2022-12-16 15:14:27 +08:00 committed by zhangyongfit2cloud
parent 585f5bd26e
commit 16557ff58e
2 changed files with 8 additions and 1 deletions

View File

@ -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: {

View File

@ -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: {