78250f20 by 杨威

解决按下enter键报错

1 parent f062febb
......@@ -110,17 +110,18 @@ export default {
};
},
created() {
},
mounted() {
let self = this;
document.onkeydown = function(e) {
//按下回车提交
let key = window.event.keyCode;
//事件中keycode=13为回车事件
if (key == 13) {
self.onSubmit();
// self.onSubmit();
}
};
},
mounted() {},
methods: {
//重置
reset() {
......