优化vue代码生成模板子表验证提示信息

This commit is contained in:
thinkgem
2023-03-13 17:44:14 +08:00
parent 1e4c9914fa
commit 513fd4ca50

View File

@@ -545,7 +545,7 @@ for (c in table.columnList){
});
}
if (!${@StringUtils.uncap(child.className)}ListValid) {
throw new Error('${@StringUtils.uncap(child.className)}List valid.');
throw { errorFields: [{ name: ['${@StringUtils.uncap(child.className)}List'] }] };
}
return ${@StringUtils.uncap(child.className)}List;
}