From 239c182d1c509f16957a9d8d8b1317d57729427a Mon Sep 17 00:00:00 2001 From: wxg0103 <727495428@qq.com> Date: Fri, 14 Oct 2022 18:29:04 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E5=AE=9A=E4=B9=89):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=9C=BA=E6=99=AF=E5=8F=98=E9=87=8F=E6=89=B9?= =?UTF-8?q?=E9=87=8F=E6=B7=BB=E5=8A=A0=E5=86=92=E5=8F=B7=E8=A2=AB=E6=88=AA?= =?UTF-8?q?=E6=96=AD=E7=9A=84=E7=BC=BA=E9=99=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1018059 --user=王孝刚 【接口测试】场景变量批量添加,多个冒号的会被截断 https://www.tapd.cn/55049933/s/1262153 --- .../business/automation/scenario/variable/VariableList.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/api-test/frontend/src/business/automation/scenario/variable/VariableList.vue b/api-test/frontend/src/business/automation/scenario/variable/VariableList.vue index 1c9a7ea128..5d75740b08 100644 --- a/api-test/frontend/src/business/automation/scenario/variable/VariableList.vue +++ b/api-test/frontend/src/business/automation/scenario/variable/VariableList.vue @@ -314,12 +314,12 @@ export default { params.forEach(item => { if (item) { let line = item.split(/:|:/); + let values = item.split(line[0] + ":"); let required = false; keyValues.push(new KeyValue({ name: line[0], required: required, - value: line[1], - description: line[2], + value: values[1], type: "CONSTANT", valid: false, file: false,