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

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

View File

@ -331,7 +331,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) => {
if (item) {

View File

@ -70,7 +70,7 @@ export default {
removeGoBackListener(this.handleClose);
},
confirm() {
let params = this.parameters.split(/[(\r\n)\r\n]+/);
let params = this.parameters.split(/[\r\n]+/);
let index = 1;
let isNormal = true;
let msg = '';

View File

@ -15,7 +15,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

@ -350,7 +350,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) => {
if (item) {

View File

@ -507,7 +507,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) => {
if (item) {

View File

@ -599,7 +599,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

@ -472,7 +472,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 => {
if (item) {

View File

@ -431,7 +431,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) => {
if (item) {

View File

@ -60,7 +60,7 @@ export default {
removeGoBackListener(this.handleClose);
},
confirm() {
let params = this.parameters.split(/[(\r\n)\r\n]+/);
let params = this.parameters.split(/[\r\n]+/);
let index = 1;
let isNormal = true;
params.forEach(item => {

View File

@ -480,7 +480,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 => {
if (item) {

View File

@ -265,7 +265,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 => {
if (item) {

View File

@ -60,7 +60,7 @@ export default {
removeGoBackListener(this.handleClose);
},
confirm() {
let params = this.parameters.split(/[(\r\n)\r\n]+/);
let params = this.parameters.split(/[\r\n]+/);
let index = 1;
let isNormal = true;
params.forEach(item => {

View File

@ -448,7 +448,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 => {
if (item) {