fix(接口定义): 修复场景变量批量添加冒号被截断的缺陷
--bug=1018059 --user=王孝刚 【接口测试】场景变量批量添加,多个冒号的会被截断 https://www.tapd.cn/55049933/s/1262153
This commit is contained in:
parent
aba8a2ba42
commit
239c182d1c
|
@ -314,12 +314,12 @@ export default {
|
||||||
params.forEach(item => {
|
params.forEach(item => {
|
||||||
if (item) {
|
if (item) {
|
||||||
let line = item.split(/:|:/);
|
let line = item.split(/:|:/);
|
||||||
|
let values = item.split(line[0] + ":");
|
||||||
let required = false;
|
let required = false;
|
||||||
keyValues.push(new KeyValue({
|
keyValues.push(new KeyValue({
|
||||||
name: line[0],
|
name: line[0],
|
||||||
required: required,
|
required: required,
|
||||||
value: line[1],
|
value: values[1],
|
||||||
description: line[2],
|
|
||||||
type: "CONSTANT",
|
type: "CONSTANT",
|
||||||
valid: false,
|
valid: false,
|
||||||
file: false,
|
file: false,
|
||||||
|
|
Loading…
Reference in New Issue