diff --git a/app/admin/view/login/login.html b/app/admin/view/login/login.html index 65a15f4..f7ed4b8 100644 --- a/app/admin/view/login/login.html +++ b/app/admin/view/login/login.html @@ -94,12 +94,12 @@ form.render(); //回车登陆 - //$('input').keydown(function(e){ - // if(e.key.Code == 13){ - //form.on(); - // } - //}); - + $(document).keydown(function(e){ + if(e.keyCode == 13){ + $("#LAY-user-login-submit").click() + } + }) + //提交 form.on('submit(LAY-user-login-submit)', function(obj){