fix: 【数据源】-新建Excel数据源,设置主键时没有设置字段长度,保存时报错后,返回修改后再次提交保存,确定按钮无响应

This commit is contained in:
taojinlong
2024-12-03 16:11:15 +08:00
parent 9f293d16aa
commit c5b74961cf

View File

@@ -220,6 +220,7 @@ const saveExcelDs = (params, successCb, finallyCb) => {
message: selectNode[i].excelLabel + t('datasource.api_field_not_empty'),
type: 'error'
})
finallyCb?.()
return
}
for (let j = 0; j < selectNode[i].fields.length; j++) {
@@ -237,6 +238,7 @@ const saveExcelDs = (params, successCb, finallyCb) => {
selectNode[i].fields[j].name,
type: 'error'
})
finallyCb?.()
return
}
}
@@ -249,9 +251,11 @@ const saveExcelDs = (params, successCb, finallyCb) => {
message: t('dataset.ple_select_excel'),
type: 'error'
})
finallyCb?.()
return
}
if (!validate) {
finallyCb?.()
return
}