auto(d389ca8d6886): session end @ 2026-06-28T21:57:06 (+1f)
This commit is contained in:
1 parent
19b90ce712
commit
0c9ac1f461
1 file changed
+4
-1
@@ -546,7 +546,10 @@ async function renderForm(
|
||||
// === Step D: columnList 列配置完整性 (webType≠1) ===
|
||||
// 镜像 web 端 ColumnDesign.getData() line 278-282 (columnList 至少 1 + 字段名匹配)
|
||||
// webType=1 (仅表单) 跳过; webType=2/3/4 至少 1 个 column + 字段名匹配 API
|
||||
const webType = formDetail.webType || (formDetail as any).WebType || 2
|
||||
// BS-52 (2026-06-28 sswtestform01 复现): JNPF 后端返 webType 为字符串 "1", 严格比较 !== 1 必走 columnList 检查, 假 FAIL
|
||||
// 修复: Number() 规范化, 同时处理 undefined/字符串/数字
|
||||
const webTypeRaw = formDetail.webType ?? (formDetail as any).WebType ?? 2
|
||||
const webType = Number(webTypeRaw) || 2
|
||||
if (opts.columnListRequired !== false && webType !== 1) {
|
||||
const columnList = columnData?.columnList || []
|
||||
const issues: string[] = []
|
||||
|
||||
Reference in new issue
Block a user