refactor: 清理小程序静态行业数据引用

This commit is contained in:
que01 committed 2026-09-23 01:59:46 +08:00
1 parent 947e6d1ac3
commit bfa24d48d0
4 files changed
+145 -39

No files matched your search

+12 -1
View File
@@ -22,7 +22,18 @@ function loadWorkspace() {
const offerings = Array.isArray(workspace && workspace.offerings)
? workspace.offerings.map(toOffering)
: fallback.offerings;
return { ...workspace, ...resolveRuntime(workspace), brand, offerings, trustContent: fallback.trustContent, plugins: Array.isArray(workspace.plugins) ? workspace.plugins : [] };
const trustContent =
Array.isArray(workspace && workspace.trustContent) && workspace.trustContent.length
? workspace.trustContent
: fallback.trustContent;
return {
...workspace,
...resolveRuntime(workspace),
brand,
offerings,
trustContent,
plugins: Array.isArray(workspace.plugins) ? workspace.plugins : [],
};
});
}