🐛 修复未阻止表单默认提交事件导致的异常

This commit is contained in:
b2baccline
2020-06-30 09:53:24 +08:00
parent 435aa906c0
commit 4e05c2c1dd

View File

@@ -64,7 +64,9 @@ export default {
},
// ============ 提交 ======================
handleSubmit() {
handleSubmit(e) {
// 阻止 submit 事件的默认行为
e.preventDefault()
// 钩子函数 处理提交之前处理的事件
this.beforeStartSubmit()
const reqFunction = this.reqFunctions[this.formAction]