From 1258797b4c4f2f314238854bf54c01330de907af Mon Sep 17 00:00:00 2001 From: Anyon Date: Fri, 8 Jan 2021 16:39:15 +0800 Subject: [PATCH] Update admin.js --- public/static/admin.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/static/admin.js b/public/static/admin.js index 7639d5a0a..7e220fddb 100644 --- a/public/static/admin.js +++ b/public/static/admin.js @@ -766,12 +766,12 @@ $(function () { img.style.background = '#fff', img.style.display = 'none'; img.style.height = 'auto', img.style.width = area || '480px'; document.body.appendChild(img), img.onerror = function () { - $.msg.close(index), (typeof done === 'function' && done()); + $.msg.close(index); }, img.onload = function () { layer.open({ type: 1, shadeClose: true, success: img.onerror, content: $(img), title: false, area: area || '480px', closeBtn: 1, skin: 'layui-layer-nobg', end: function () { - document.body.removeChild(img); + document.body.removeChild(img), (typeof done === 'function' && done()) } }); };