created() { // 按下回车执行登录按钮点击事件 var _self = this document.onkeydown = function(e) { var key = window.event.keyCode if (key == 13) { _self.handleLogin() } } }