监听键盘事件 created: function() { var _this = this; document.onkeydown = function(e) { let key = window.event.keyCode; if (key == 13) { _this.submitForm('ruleForm'); } }; },