10.18
This commit is contained in:
parent
f516365a5a
commit
1ae880d708
@ -234,11 +234,11 @@ export default {
|
||||
})
|
||||
},
|
||||
submitForm(formName) {
|
||||
this.deviceInfo.deviceAb = this.deviceInfo.deviceAb.join(',')
|
||||
this.$refs[formName].validate(valid => {
|
||||
if (valid) {
|
||||
// 表单验证通过,可以提交数据
|
||||
// 示例:调用 API 提交数据
|
||||
this.deviceInfo.deviceAb = this.deviceInfo.deviceAb.join(',')
|
||||
this.submitDeviceInfo();
|
||||
} else {
|
||||
// 表单验证失败,不执行任何操作
|
||||
|
Loading…
Reference in New Issue
Block a user