From 9b4ab72d2767bec967665ff5f6acb40784ce4850 Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Wed, 8 Nov 2023 15:44:01 +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=E8=BF=90=E8=A1=8C=E7=8E=AF=E5=A2=83=E5=8F=98?= =?UTF-8?q?=E9=87=8F=E6=97=A0=E6=B3=95=E5=88=A0=E9=99=A4=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=1032690 --user=王孝刚 【项目设置】github#27449,接口测试运行环境变量无法删除 https://www.tapd.cn/55049933/s/1434380 --- .../components/environment/commons/ApiScenarioVariables.vue | 3 +++ 1 file changed, 3 insertions(+) diff --git a/framework/sdk-parent/frontend/src/components/environment/commons/ApiScenarioVariables.vue b/framework/sdk-parent/frontend/src/components/environment/commons/ApiScenarioVariables.vue index cab37c6055..c7cc573eee 100644 --- a/framework/sdk-parent/frontend/src/components/environment/commons/ApiScenarioVariables.vue +++ b/framework/sdk-parent/frontend/src/components/environment/commons/ApiScenarioVariables.vue @@ -260,6 +260,9 @@ export default { const allDataIndex = this.allData.findIndex((d) => d.name === index.name); this.allData.splice(allDataIndex, 1); + + const itemsIndex = this.items.findIndex((d) => d.name === index.name); + this.items.splice(itemsIndex, 1); this.sortParameters(); this.currentPage = Math.ceil(this.allData.length / this.pageSize); this.queryPage();