优化代码生成修改提交表单未验证通过提交之后不能在继续提交问题
This commit is contained in:
parent
c1eec965c3
commit
a900d30a03
@ -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('表单校验未通过,请重新检查提交内容')
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user