From adb8a733534e48b8d7ed29076f11f5b39f5498e4 Mon Sep 17 00:00:00 2001 From: guoyuqi Date: Wed, 16 Feb 2022 16:14:59 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E6=8E=A5=E5=8F=A3=E6=B5=8B=E8=AF=95):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=8E=A5=E5=8F=A3=E8=87=AA=E5=8A=A8=E5=8C=96?= =?UTF-8?q?=E5=9C=BA=E6=99=AF=E5=8F=98=E9=87=8F=E5=88=A0=E9=99=A4=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E9=A1=B5=E9=9D=A2=E6=8A=A5=E9=94=99=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --user=郭雨琦 修复接口自动化场景变量删除文件页面报错问题 --- .../api/automation/scenario/variable/CsvFileUpload.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/business/components/api/automation/scenario/variable/CsvFileUpload.vue b/frontend/src/business/components/api/automation/scenario/variable/CsvFileUpload.vue index bf08e9dd84..f176774ca9 100644 --- a/frontend/src/business/components/api/automation/scenario/variable/CsvFileUpload.vue +++ b/frontend/src/business/components/api/automation/scenario/variable/CsvFileUpload.vue @@ -72,13 +72,13 @@ export default { } }, handleRemove(file) { - this.$alert('是否确认删除CSV文件:【 ' + file.file ? file.file.name : file.name + " 】?", '', { + let fileName = file.file ? file.file.name : file.name + this.$alert('是否确认删除CSV文件:【 ' + fileName + " 】?", '', { confirmButtonText: this.$t('commons.confirm'), callback: (action) => { if (action === 'confirm') { this.$refs.upload.handleRemove(file); for (let i = 0; i < this.parameter.files.length; i++) { - let fileName = file.file ? file.file.name : file.name; let paramFileName = this.parameter.files[i].file ? this.parameter.files[i].file.name : this.parameter.files[i].name; if (fileName === paramFileName) {