回车键触发登录
直接上代码
created(){ let that = this document.onkeypress = function(e) { var keycode = document.all ? event.keyCode : e.which; if (keycode == 13) { //that.handleSubmit();// 登录方法名 that.$route.path == '/Login' ? that.handleSubmit() : ''; return false; } } }

浙公网安备 33010602011771号