数据目录 F2b / B3 跟进:发布前检查整理问题时保留 sql_level(canvas/issues.normalizeIssue 原来只留固定的几个字段,把它丢了,界面只能退回按 level 认)

This commit is contained in:
ThearchyHelios
2026-10-04 03:18:38 +08:00
parent ab9d45c428
commit 042ae3161f
+2
View File
@@ -239,6 +239,8 @@ function normalizeIssue(raw: any): ValidationIssue | null {
field: raw.field ?? null,
code: typeof raw.code === 'string' ? raw.code : null,
fix: typeof raw.fix === 'string' && raw.fix ? raw.fix : null,
// 门禁里的 SQL 检查带着检查本来的级别(governance._lint_sql),发布前检查据此写「错误 / 提醒」
...(raw.sql_level === 'error' || raw.sql_level === 'warning' ? { sql_level: raw.sql_level } : {}),
}
}