fix : 完善信息提示框
This commit is contained in:
@@ -158,7 +158,13 @@ const handleDelete = (index) => {
|
||||
const handleSubmit = (instance) => {
|
||||
if (!instance) return
|
||||
instance.validate(async (valid) => {
|
||||
if (!valid) return
|
||||
if (!valid) {
|
||||
return ElNotification({
|
||||
title: '提示',
|
||||
message: '请完善数据,再提交!',
|
||||
type: 'error'
|
||||
})
|
||||
}
|
||||
instance.clearValidate()
|
||||
tableForm.tableData.forEach(item=>{
|
||||
item.projectName=projectName.value
|
||||
|
||||
Reference in New Issue
Block a user