diff --git a/web_src/vuepages/pages/modelmanage/local/modelmanage-local-create-2.vue b/web_src/vuepages/pages/modelmanage/local/modelmanage-local-create-2.vue index 98a5fd58e..8227b7b11 100644 --- a/web_src/vuepages/pages/modelmanage/local/modelmanage-local-create-2.vue +++ b/web_src/vuepages/pages/modelmanage/local/modelmanage-local-create-2.vue @@ -449,17 +449,21 @@ export default { this.getChunksInfo(file).then(res => { // 获取Chunk信息 if (file.uploadID == '' || file.uuid == '') { // 未上传过 this.newUpload(file); - } else if (file.uploaded == '1') { // 已上传成功 秒传 + } else if (file.uploaded == '1') { // 已上传成功 if (file.attachID == '0') { // 删除数据集记录,未删除文件 // await addAttachment(file); console.log(`file.attachID == '0'`); } + this.uploadLength++; // 同一模型上传同一个文件 - if (file.modelUuid != '' && file.modelName != '' && file.realName != '') { + if (file.modelUuid != '') { const info = `该文件已上传在模型: ${file.modelName}`; - this.uploadLength++; this.uploadError(file, info); this.updateFileStatus(file, "上传失败", 0, 1, info); + } else { // 秒传 + this.uploadSuccessLength++; + this.updateFileStatus(file, "上传成功", 100, 0); + this.uploadSuccess(file); } console.log(file.name, '文件处理完成'); } else { // 断点续传