优化代码生成修改提交表单未验证通过提交之后不能在继续提交问题

This commit is contained in:
不做码农 2023-04-19 19:52:33 +08:00
parent c1eec965c3
commit a900d30a03

View File

@ -224,15 +224,19 @@ function submitForm() {
colNum: info.value.colNum, colNum: info.value.colNum,
generateRepo: info.value.generateRepo generateRepo: info.value.generateRepo
} }
console.log('genForm', genTable)
updateGenTable(genTable).then((res) => { updateGenTable(genTable)
proxy.$modal.msgSuccess(res.msg) .then((res) => {
if (res.code === 200) { proxy.$modal.msgSuccess(res.msg)
close() if (res.code === 200) {
} close()
}) }
})
.catch(() => {
submitLoading.value = false
})
} else { } else {
submitLoading.value = false
proxy.$modal.msgError('表单校验未通过,请重新检查提交内容') proxy.$modal.msgError('表单校验未通过,请重新检查提交内容')
} }
}) })