Showing
1 changed file
with
5 additions
and
1 deletions
@@ -588,8 +588,12 @@ layui.define(['xmSelect', 'md5'], function (exports) { | @@ -588,8 +588,12 @@ layui.define(['xmSelect', 'md5'], function (exports) { | ||
588 | id: id, | 588 | id: id, |
589 | content: laytpl(res.body).render(JSON.stringify(params)), | 589 | content: laytpl(res.body).render(JSON.stringify(params)), |
590 | success: function (layero, index) { | 590 | success: function (layero, index) { |
591 | - if (done) { | 591 | + if (typeof done==="function") { |
592 | done(layero, index); | 592 | done(layero, index); |
593 | + }else if(done.success){ | ||
594 | + done.success() | ||
595 | + }else { | ||
596 | + return | ||
593 | } | 597 | } |
594 | }, | 598 | }, |
595 | yes: function (index, layero) { | 599 | yes: function (index, layero) { |
-
Please register or login to post a comment