Skip to content

Commit

Permalink
修复多图上传后不能直接删除第一张图的问题 (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
cshaptx4869 committed Jan 8, 2021
1 parent 78cf475 commit 699c5de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/static/plugs/easy-admin/easy-admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -1276,7 +1276,7 @@ define(["jquery", "tableSelect", "ckeditor"], function ($, tableSelect, undefine
var currentUrl = $(elem).val();
var url = '';
if (currentUrl !== deleteUrl) {
url = currentUrl.replace(sign + deleteUrl, '');
url = currentUrl.search(deleteUrl) === 0 ? currentUrl.replace(deleteUrl + sign, '') : currentUrl.replace(sign + deleteUrl, '');
$(elem).val(url);
$(elem).trigger("input");
} else {
Expand Down

0 comments on commit 699c5de

Please sign in to comment.