fix(接口定义): 修复批量添加特殊数据,添加后没有值的缺陷
--bug=1021677 --user=王孝刚 【接口测试】场景 / 环境变量,批量添加,填写a🅰️a,添加后a没有值 https://www.tapd.cn/55049933/s/1324289
This commit is contained in:
parent
0a8154f2d0
commit
49d3eb400a
|
@ -336,13 +336,13 @@ export default {
|
|||
params.forEach((item) => {
|
||||
if (item) {
|
||||
let line = item.split(/:|:/);
|
||||
let values = item.split(line[0] + ':');
|
||||
let values = item.substr(line[0].length + 1);
|
||||
let required = false;
|
||||
keyValues.push(
|
||||
new KeyValue({
|
||||
name: line[0],
|
||||
required: required,
|
||||
value: values[1],
|
||||
value: values,
|
||||
type: 'CONSTANT',
|
||||
valid: false,
|
||||
file: false,
|
||||
|
|
|
@ -19,7 +19,7 @@ export default {
|
|||
let keyValues = [];
|
||||
params.forEach((item) => {
|
||||
let line = item.split(/:|:/);
|
||||
let values = item.split(line[0] + ':');
|
||||
let values = item.substr(line[0].length + 1);
|
||||
let required = false;
|
||||
if (line[1] === '必填' || line[1] === 'Required' || line[1] === 'true') {
|
||||
required = true;
|
||||
|
@ -28,8 +28,7 @@ export default {
|
|||
new KeyValue({
|
||||
name: line[0],
|
||||
required: required,
|
||||
value: values[1],
|
||||
description: line[3],
|
||||
value: values,
|
||||
type: 'text',
|
||||
valid: false,
|
||||
file: false,
|
||||
|
|
|
@ -512,14 +512,14 @@ export default {
|
|||
params.forEach((item) => {
|
||||
if (item) {
|
||||
let line = item.split(/:|:/);
|
||||
let values = item.split(line[0] + ':');
|
||||
let values = item.substr(line[0].length +1);
|
||||
|
||||
let required = false;
|
||||
keyValues.push(
|
||||
new KeyValue({
|
||||
name: line[0],
|
||||
required: required,
|
||||
value: values[1],
|
||||
value: values,
|
||||
type: 'text',
|
||||
valid: false,
|
||||
file: false,
|
||||
|
|
|
@ -474,12 +474,12 @@ export default {
|
|||
params.forEach(item => {
|
||||
if (item) {
|
||||
let line = item.split(/:|:/);
|
||||
let values = item.split(line[0] + ":");
|
||||
let values = item.substr(line[0].length + 1);
|
||||
let required = false;
|
||||
keyValues.push(new KeyValue({
|
||||
name: line[0],
|
||||
required: required,
|
||||
value: values[1],
|
||||
value: values,
|
||||
type: "text",
|
||||
valid: false,
|
||||
file: false,
|
||||
|
|
|
@ -403,13 +403,13 @@ export default {
|
|||
params.forEach((item) => {
|
||||
if (item) {
|
||||
let line = item.split(/:|:/);
|
||||
let values = item.split(line[0] + ":");
|
||||
let values = item.substr(line[0].length + 1);
|
||||
let required = false;
|
||||
keyValues.push(
|
||||
new KeyValue({
|
||||
name: line[0],
|
||||
required: required,
|
||||
value: values[1],
|
||||
value: values,
|
||||
type: "CONSTANT",
|
||||
valid: false,
|
||||
file: false,
|
||||
|
|
Loading…
Reference in New Issue