From 5b1f2e80dad05f99dd4646543991bf0aac44a52d Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Mon, 14 Mar 2022 18:17:46 +0800 Subject: [PATCH] =?UTF-8?q?refactor(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):?= =?UTF-8?q?=20=E5=85=B3=E9=97=AD=E5=9C=BA=E6=99=AF=E6=97=B6=E6=B8=85?= =?UTF-8?q?=E7=A9=BA=E5=BC=95=E7=94=A8=E5=AF=B9=E8=B1=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/business/components/api/automation/ApiAutomation.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/frontend/src/business/components/api/automation/ApiAutomation.vue b/frontend/src/business/components/api/automation/ApiAutomation.vue index 7b201540c6..124e25dfd5 100644 --- a/frontend/src/business/components/api/automation/ApiAutomation.vue +++ b/frontend/src/business/components/api/automation/ApiAutomation.vue @@ -469,6 +469,10 @@ export default { } else { this.activeName = "default"; } + let index = this.tabs.findIndex(item => item.name === targetName); + if (index !== -1) { + this.tabs.splice(index, 1); + } }, setTabLabel(data) { for (const tab of this.tabs) {