fix(接口测试): 修复批量添加参数解析了括号的缺陷

--bug=1025073 --user=王孝刚 【接口测试】环境配置-批量添加请求头-value被当作key添加了
https://www.tapd.cn/55049933/s/1358817
This commit is contained in:
wxg0103 2023-04-03 18:03:41 +08:00 committed by wxg0103
parent c3b2495309
commit 3c69f4c8ed
11 changed files with 11 additions and 11 deletions

View File

@ -238,7 +238,7 @@ export default {
},
_handleBatchVars(data) {
if (data) {
let params = data.split(/[(\r\n)\r\n]+/);
let params = data.split(/[\r\n]+/);
let keyValues = [];
params.forEach(item => {
let line = item.split(/|:/);

View File

@ -16,7 +16,7 @@ export default {
methods: {
batchSave(data) {
if (data) {
let params = data.split(/[(\r\n)\r\n]+/);
let params = data.split(/[\r\n]+/);
let keyValues = [];
params.forEach(item => {
let line = item.split(/:|/);

View File

@ -313,7 +313,7 @@ export default {
},
batchSave(data) {
if (data) {
let params = data.split(/[(\r\n)\r\n]+/);
let params = data.split(/[\r\n]+/);
let keyValues = [];
params.forEach(item => {
let line = [];

View File

@ -277,7 +277,7 @@ export default {
},
batchSave(data) {
if (data) {
let params = data.split(/[(\r\n)\r\n]+/);
let params = data.split(/[\r\n]+/);
let keyValues = [];
params.forEach(item => {
let line = [];

View File

@ -311,7 +311,7 @@ export default {
},
batchSave(data) {
if (data) {
let params = data.split(/[(\r\n)\r\n]+/);
let params = data.split(/[\r\n]+/);
let keyValues = [];
params.forEach(item => {
let line = [];

View File

@ -277,7 +277,7 @@ export default {
},
batchSave(data) {
if (data) {
let params = data.split(/[(\r\n)\r\n]+/);
let params = data.split(/[\r\n]+/);
let keyValues = [];
params.forEach(item => {
let line = item.split(/|:/);

View File

@ -210,7 +210,7 @@ export default {
},
batchSave(data) {
if (data) {
let params = data.split(/[(\r\n)\r\n]+/);
let params = data.split(/[\r\n]+/);
let keyValues = [];
params.forEach(item => {
let line = item.split(/|:/);

View File

@ -429,7 +429,7 @@ export default {
},
batchSave(data) {
if (data) {
let params = data.split(/[(\r\n)\r\n]+/);
let params = data.split(/[\r\n]+/);
let keyValues = [];
params.forEach(item => {
let line = item.split(/|:/);

View File

@ -494,7 +494,7 @@ export default {
},
batchSave(data) {
if (data) {
let params = data.split(/[(\r\n)\r\n]+/);
let params = data.split(/[\r\n]+/);
let keyValues = [];
params.forEach(item => {
let line = item.split(/|,/);

View File

@ -106,7 +106,7 @@ export default {
return this.items.length - 1 === index;
},
_handleBatchVars(data) {
let params = data.split(/[(\r\n)\r\n]+/);
let params = data.split(/[\r\n]+/);
let keyValues = [];
params.forEach(item => {
let line = item.split(/|:/);

View File

@ -396,7 +396,7 @@ export default {
this.$refs.batchAdd.open();
},
_handleBatchVars(data) {
let params = data.split(/[(\r\n)\r\n]+/);
let params = data.split(/[\r\n]+/);
let keyValues = [];
params.forEach(item => {
let line = item.split(/|:/);