Skip to content

Commit

Permalink
修复文件上传表单disableRemove模式下保存文件异常问题
Browse files Browse the repository at this point in the history
  • Loading branch information
jqhph committed Apr 30, 2020
1 parent 173abc6 commit af9dd32
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
2 changes: 2 additions & 0 deletions resources/assets/dcat/extra/upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -333,6 +333,7 @@
case 'deleteurl':
case 'delete':
if (opts.disableRemove) {
deleteInput(file.serverId);
return uploader.removeFile(file);
}

Expand All @@ -341,6 +342,7 @@

post.key = file.serverId;
if (!post.key) {
deleteInput(file.serverId);
return uploader.removeFile(file);
}
post._column = updateColumn;
Expand Down
Loading

0 comments on commit af9dd32

Please sign in to comment.