fix(测试跟踪):修复缺陷管理导入文件失败,修改文件后重新导入异常问题

--bug=1026473 --user=王旭 【测试跟踪】缺陷管理,导入缺陷文件内容错误后,修改一下原始文件再保存,报network error https://www.tapd.cn/55049933/s/1375051
This commit is contained in:
WangXu10 2023-05-24 15:51:55 +08:00 committed by fit2-zhao
parent 5108a4c017
commit 800e586268

View File

@ -26,7 +26,6 @@
<el-row> <el-row>
<el-upload <el-upload
class="issue-upload" drag action="alert" class="issue-upload" drag action="alert"
:limit="1"
:file-list="uploadFiles" :file-list="uploadFiles"
:http-request="handleUpload" :http-request="handleUpload"
:on-remove="handleRemove" accept=".xls, .xlsx"> :on-remove="handleRemove" accept=".xls, .xlsx">
@ -97,6 +96,7 @@ export default {
this.errList = []; this.errList = [];
}, },
handleUpload(file) { handleUpload(file) {
this.uploadFiles = [];
this.uploadFiles.push(file.file); this.uploadFiles.push(file.file);
}, },
handleRemove(file) { handleRemove(file) {