fix(接口测试): 修复运行环境变量无法删除的缺陷

--bug=1032690 --user=王孝刚 【项目设置】github#27449,接口测试运行环境变量无法删除
https://www.tapd.cn/55049933/s/1434380
This commit is contained in:
wxg0103 2023-11-08 15:44:01 +08:00 committed by wxg0103
parent 1136d62153
commit 9b4ab72d27
1 changed files with 3 additions and 0 deletions

View File

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