优化代码

This commit is contained in:
lanrenwo
2022-06-03 07:26:41 +08:00
parent a450fe3eef
commit c38f1e9b8c
3 changed files with 21 additions and 17 deletions

View File

@@ -451,7 +451,7 @@ export default {
arr.push({val: "", action: "allow", port: 0});
},
submitForm(formName) {
this.$refs[formName].validate((valid, obj) => {
this.$refs[formName].validate((valid) => {
if (!valid) {
console.log('error submit!!');
return false;