created() {
//调用方法的时候提示方法不存在,加上_self
_self = this;
},
mounted() {
document.onkeyup = function (e) {
if (e.code == "Enter") {
_self.onSubmit("ruleForm");
}
}
},
created() {
//调用方法的时候提示方法不存在,加上_self
_self = this;
},
mounted() {
document.onkeyup = function (e) {
if (e.code == "Enter") {
_self.onSubmit("ruleForm");
}
}
},