diff --git a/common/src/main/resources/static/layer/3.5/layer.js b/common/src/main/resources/static/layer/3.5/layer.js index 915977f9..720a3e65 100644 --- a/common/src/main/resources/static/layer/3.5/layer.js +++ b/common/src/main/resources/static/layer/3.5/layer.js @@ -710,6 +710,7 @@ Class.pt.callback = function(){ var that = this, layero = that.layero, config = that.config; that.openLayer(); if(config.success){ + layero.find('.layui-layer-close').focus(); // 弹窗后首先关闭获取焦点,防止回车弹出多个 if(config.type == 2){ layero.find('iframe').on('load', function(){ config.success(layero, that.index);