From 0c9ac1f461c3ab38833eccefc970e561bd54a450 Mon Sep 17 00:00:00 2001 From: ssw Date: Sun, 28 Jun 2026 21:57:12 +0800 Subject: [PATCH] auto(d389ca8d6886): session end @ 2026-06-28T21:57:06 (+1f) --- src/commands/test/render.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/commands/test/render.ts b/src/commands/test/render.ts index 851f56b..b72510c 100644 --- a/src/commands/test/render.ts +++ b/src/commands/test/render.ts @@ -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[] = []