fix: 补齐多品牌运行时内容数据

This commit is contained in:
que01 committed 2026-09-23 14:00:49 +08:00
1 parent f7fe6d6b20
commit 241c19812f
6 files changed
+188 -3

No files matched your search

@@ -98,6 +98,10 @@ export class PublicWorkspaceController {
: "linjing-editorial";
const visualTemplate =
getVisualTemplate(visualTemplateKey) ?? getVisualTemplate("linjing-editorial");
const runtimeBrand = {
...(brand ?? {}),
...brandConfig,
};
const runtimeModules: RuntimeModule[] = modules.map((module) => ({
key: module.type,
type: this.moduleType(module.type),
@@ -169,7 +173,7 @@ export class PublicWorkspaceController {
const inquiryForm = inquiryForms[0] ?? null;
const runtimeWorkspace: RuntimeWorkspace = {
schemaVersion: "1.0.0",
brand: brand ?? {},
brand: runtimeBrand,
navigation: {
tabs: [
{ key: "home", label: "首页", page: "pages/index/index" },
@@ -203,7 +207,7 @@ export class PublicWorkspaceController {
const response = {
...runtimeWorkspace,
contractVersion: "1.0",
brand,
brand: runtimeBrand,
template: template
? {
key: template.key,