fix(项目管理): 修复批量添加参数,参数类型为空的缺陷

--bug=1037614 --user=王孝刚 【项目管理】环境管理-环境变量中批量添加参数-所有参数的类型都被置空
https://www.tapd.cn/55049933/s/1479554
This commit is contained in:
wxg0103 2024-03-23 16:27:33 +08:00 committed by Craftsman
parent de37367c62
commit 29e10f47a6
1 changed files with 3 additions and 0 deletions

View File

@ -144,6 +144,9 @@
* 批量参数代码转换为参数表格数据
*/
function handleBatchParamApply(resultArr: any[]) {
resultArr.forEach((item) => {
item.paramType = 'CONSTANT';
});
if (resultArr.length < innerParams.value.length) {
innerParams.value.splice(0, innerParams.value.length - 1, ...resultArr);
} else {