fix(接口测试): 修复场景回收站切换到列表,模块树未刷新的缺陷
--bug=1027569 --user=王孝刚 【接口测试】场景回收站切到到场景列表-模块树未更新 https://www.tapd.cn/55049933/s/1390754
This commit is contained in:
parent
7ec09170a2
commit
b1d773f2a6
|
@ -313,10 +313,13 @@ export default {
|
|||
addTab(tab) {
|
||||
this.trashEnable = tab.name === 'trash';
|
||||
if (tab.name === 'default') {
|
||||
this.$refs.apiScenarioList.condition.combine = {};
|
||||
this.trashEnable = false;
|
||||
this.$refs.nodeTree.list(this.projectId);
|
||||
if(this.$refs.apiScenarioList){
|
||||
if (this.$refs.apiScenarioList.condition && this.$refs.apiScenarioList.condition.combine) {
|
||||
this.$refs.apiScenarioList.condition.combine = {};
|
||||
}
|
||||
this.$refs.apiScenarioList.search(this.projectId);
|
||||
}
|
||||
} else if (tab.name === 'trash') {
|
||||
this.trashEnable = true;
|
||||
this.$refs.apiTrashScenarioList.search();
|
||||
|
|
Loading…
Reference in New Issue