修复后台登录页回车登录

This commit is contained in:
taoser 2020-12-10 17:11:41 +08:00
parent 6534827c4e
commit 18df4bda7e

View File

@ -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){