优化代码生成修改提交表单未验证通过提交之后不能在继续提交问题
This commit is contained in:
parent
c1eec965c3
commit
a900d30a03
@ -224,15 +224,19 @@ function submitForm() {
|
||||
colNum: info.value.colNum,
|
||||
generateRepo: info.value.generateRepo
|
||||
}
|
||||
console.log('genForm', genTable)
|
||||
|
||||
updateGenTable(genTable).then((res) => {
|
||||
proxy.$modal.msgSuccess(res.msg)
|
||||
if (res.code === 200) {
|
||||
close()
|
||||
}
|
||||
})
|
||||
updateGenTable(genTable)
|
||||
.then((res) => {
|
||||
proxy.$modal.msgSuccess(res.msg)
|
||||
if (res.code === 200) {
|
||||
close()
|
||||
}
|
||||
})
|
||||
.catch(() => {
|
||||
submitLoading.value = false
|
||||
})
|
||||
} else {
|
||||
submitLoading.value = false
|
||||
proxy.$modal.msgError('表单校验未通过,请重新检查提交内容')
|
||||
}
|
||||
})
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user