fix(layer): 空图片容器动态添加图片时,无法收集数据的问题 (#2581)

This commit is contained in:
morning-star 2025-03-28 17:15:24 +08:00 committed by GitHub
parent 2f404fb6ed
commit b2c1a6130b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1554,8 +1554,6 @@ layer.photos = function(options, loop, key){
pushData();
if (data.length === 0) return;
loop || parent.on('click', options.img, function(){
pushData();
var othis = $(this), index = othis.attr('layer-index');