fix(接口测试): 修复请求体参数批量添加参数有问题的缺陷
--bug=1025810 --user=王孝刚 【接口测试】接口定义-编辑接口-请求体-(form-data)-批量添加-添加多条不同内容只显示最后一条 https://www.tapd.cn/55049933/s/1366746
This commit is contained in:
parent
b0192a7a20
commit
e26a4f6761
|
@ -354,16 +354,14 @@ export default {
|
|||
let keyValues = [];
|
||||
params.forEach((item) => {
|
||||
if (item) {
|
||||
let line = [];
|
||||
line[0] = item.substring(0, item.indexOf(/:|:/)).trim();
|
||||
line[1] = item.substring(item.indexOf(/:|:/) + 1, item.length).trim();
|
||||
let line = item.split(/:|:/);
|
||||
let values = item.substr(line[0].length +1).trim();
|
||||
let required = false;
|
||||
keyValues.push(
|
||||
new KeyValue({
|
||||
name: line[0],
|
||||
required: required,
|
||||
value: line[1],
|
||||
description: line[2],
|
||||
value: values,
|
||||
type: 'text',
|
||||
valid: false,
|
||||
file: false,
|
||||
|
|
Loading…
Reference in New Issue