Skip to content

Commit

Permalink
🐛 fix #1235
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed May 16, 2022
1 parent 2ff1bfb commit 42086cf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Expand Up @@ -97,6 +97,7 @@

### v3.8.15 / 2022-06

* [1235](https://github.com/Vanessa219/vditor/issues/1235) 自定义上传无法连续上传相同的图片 `修复缺陷`
* [1228](https://github.com/Vanessa219/vditor/issues/1228) 使用删除图标删除后,大纲没有自动更新 `修复缺陷`
* [1230](https://github.com/Vanessa219/vditor/issues/1230) cnd preview path 重复加载问题 `改进功能`

Expand Down
3 changes: 3 additions & 0 deletions src/ts/upload/index.ts
Expand Up @@ -155,6 +155,9 @@ const uploadFiles =

if (vditor.options.upload.handler) {
const isValidate = await vditor.options.upload.handler(fileList);
if (element) {
element.value = "";
}
if (typeof isValidate === "string") {
vditor.tip.show(isValidate);
return;
Expand Down

0 comments on commit 42086cf

Please sign in to comment.