!41 修复多图上传时的bug

Merge pull request !41 from 七彩枫叶/N/A
This commit is contained in:
meystack
2023-06-13 01:25:45 +00:00
committed by Gitee

View File

@@ -1157,7 +1157,7 @@ layui.define(['jquery', 'i18n', 'element', 'layer', 'form', 'rate', 'table', 'sl
multiple: function (res, name) {
let boxList = $(that).parents('.layui-imagesbox').find('.layui-input-inline');
let length = boxList.length;
$(this).parents('form').find('input#' + name + '_clear').remove();
that.parents('form').find('input#' + name + '_clear').remove();
$(boxList).each(function (i, item) {
$(item).find('input.layui-hide').prop('name', name + '[' + i + '][src]');
$(item).find('input.layui-input').prop('name', name + '[' + i + '][title]');