From f779e29a1329f4c4ef8f342431f6779c08f01162 Mon Sep 17 00:00:00 2001 From: guoyuqi Date: Wed, 26 Jan 2022 20:14:37 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=B8=8A=E4=BC=A0csv=E6=96=87=E4=BB=B6=E5=90=8D=E6=B2=A1?= =?UTF-8?q?=E5=A4=8D=E7=8E=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --bug=1010038--user=郭雨琦 【ID1010038】【接口测试】场景上传csv文件失败 --- .../api/automation/scenario/variable/VariableList.vue | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/frontend/src/business/components/api/automation/scenario/variable/VariableList.vue b/frontend/src/business/components/api/automation/scenario/variable/VariableList.vue index b05fe590f0..ed7656f1d0 100644 --- a/frontend/src/business/components/api/automation/scenario/variable/VariableList.vue +++ b/frontend/src/business/components/api/automation/scenario/variable/VariableList.vue @@ -307,6 +307,7 @@ }, updateParameters(v) { this.editData = JSON.parse(JSON.stringify(v)); + this.upDateFiles(); let datas = []; this.variables.forEach(item => { if(item.id === v.id){ @@ -467,8 +468,16 @@ handleRowClick(row) { // 做深拷贝 this.editData = JSON.parse(JSON.stringify(row)); + this.upDateFiles(); this.showDelete = true; }, + upDateFiles(){ + this.variables.forEach(item => { + if(item.id === this.editData.id){ + this.editData.files = item.files + } + }); + } } };