From fe548f7aa992dcba1cf1573fa0dacc24575ba5ca Mon Sep 17 00:00:00 2001 From: fit2-zhao Date: Thu, 17 Mar 2022 12:45:39 +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=E4=B8=80=E9=94=AE=E6=94=B6=E8=B5=B7=E5=A4=B1?= =?UTF-8?q?=E6=95=88=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1011328 --user=赵勇 【接口测试】场景一键收起,没有完全收起 https://www.tapd.cn/55049933/s/1119798 --- .../src/business/components/api/automation/ApiAutomation.vue | 4 ++++ .../components/api/automation/scenario/EditApiScenario.vue | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/frontend/src/business/components/api/automation/ApiAutomation.vue b/frontend/src/business/components/api/automation/ApiAutomation.vue index 124e25dfd5..6ee521fcdd 100644 --- a/frontend/src/business/components/api/automation/ApiAutomation.vue +++ b/frontend/src/business/components/api/automation/ApiAutomation.vue @@ -460,6 +460,10 @@ export default { this.isSave = false; this.removeTab(targetName); } + if (t) { + t.splice(0, 1); + t = undefined; + } }, removeTab(targetName) { this.tabs = this.tabs.filter(tab => tab.name !== targetName); diff --git a/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue b/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue index e89f6f92a5..a194f45a52 100644 --- a/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue +++ b/frontend/src/business/components/api/automation/scenario/EditApiScenario.vue @@ -195,7 +195,7 @@ highlight-current @node-expand="nodeExpand" @node-collapse="nodeCollapse" - :allow-drop="allowDrop" @node-drag-end="allowDrag" @node-click="nodeClick" draggable ref="stepTree"> + :allow-drop="allowDrop" @node-drag-end="allowDrag" @node-click="nodeClick" draggable :key="reloadKey" ref="stepTree">