fix(接口测试): 修复接口自动化场景变量删除文件页面报错问题
--user=郭雨琦 修复接口自动化场景变量删除文件页面报错问题
This commit is contained in:
parent
64a077bd1c
commit
47fb30ad1d
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue