From b1d773f2a6872337e65b1b63edcea1b158868e41 Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Mon, 10 Jul 2023 15:11:14 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9C=BA=E6=99=AF=E5=9B=9E=E6=94=B6=E7=AB=99?= =?UTF-8?q?=E5=88=87=E6=8D=A2=E5=88=B0=E5=88=97=E8=A1=A8=EF=BC=8C=E6=A8=A1?= =?UTF-8?q?=E5=9D=97=E6=A0=91=E6=9C=AA=E5=88=B7=E6=96=B0=E7=9A=84=E7=BC=BA?= =?UTF-8?q?=E9=99=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1027569 --user=王孝刚 【接口测试】场景回收站切到到场景列表-模块树未更新 https://www.tapd.cn/55049933/s/1390754 --- .../frontend/src/business/automation/ApiAutomation.vue | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/api-test/frontend/src/business/automation/ApiAutomation.vue b/api-test/frontend/src/business/automation/ApiAutomation.vue index ba08b29369..00cf5aa509 100644 --- a/api-test/frontend/src/business/automation/ApiAutomation.vue +++ b/api-test/frontend/src/business/automation/ApiAutomation.vue @@ -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); - this.$refs.apiScenarioList.search(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();