fix: 收敛模板编辑发布契约并还原餐饮页面视觉

This commit is contained in:
que01 committed 2026-10-08 13:36:59 +08:00
1 parent 20bcb43534
commit f4061a24bd
102 files changed
+4510 -870

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
function prepareTrustItems(items) {
if (!Array.isArray(items)) return [];
return items.map((item) => ({
...item,
...(item.type === "process"
? {
lines:
typeof item.content === "string"
? item.content
.split(/\r?\n/)
.map((line) => line.trim())
.filter(Boolean)
: [],
}
: {}),
}));
}
module.exports = { prepareTrustItems };