fix(接口测试): 修复场景回收站切换到列表,模块树未刷新的缺陷

--bug=1027569 --user=王孝刚 【接口测试】场景回收站切到到场景列表-模块树未更新
https://www.tapd.cn/55049933/s/1390754
This commit is contained in:
wxg0103 2023-07-10 15:11:14 +08:00 committed by fit2-zhao
parent 7ec09170a2
commit b1d773f2a6
1 changed files with 6 additions and 3 deletions

View File

@ -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();