refactor: 清理小程序静态行业数据引用
This commit is contained in:
1 parent
947e6d1ac3
commit
bfa24d48d0
4 files changed
+145
-39
No files matched your search
@@ -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 : [],
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user