fix(接口测试): 批量添加参数过滤文件类型参数

This commit is contained in:
baiqi 2024-07-12 13:35:41 +08:00 committed by Craftsman
parent 68afda90ac
commit d618fcf5a8
1 changed files with 2 additions and 1 deletions

View File

@ -96,8 +96,9 @@
.map((item) => `${item.key},${item.paramType},${item.required},${item.value}`) .map((item) => `${item.key},${item.paramType},${item.required},${item.value}`)
.join('\n'); .join('\n');
} else { } else {
//
batchParamsCode.value = props.params batchParamsCode.value = props.params
.filter((e) => e && (!isEmpty(e.key) || !isEmpty(e.value))) .filter((e) => e && (!isEmpty(e.key) || !isEmpty(e.value)) && e.paramType !== RequestParamsType.FILE)
.map((item) => `${item.key}:${item.value}`) .map((item) => `${item.key}:${item.value}`)
.join('\n'); .join('\n');
} }