fix: 保证品牌模板身份不被台账漂移

This commit is contained in:
que01 committed 2026-10-14 16:27:23 +08:00
1 parent 6073e72940
commit aaeec14733
6 files changed
+53 -13

No files matched your search

@@ -95,9 +95,9 @@ export function assemblePublicWorkspace(input: {
) as Array<Record<string, unknown>>;
const installationData = asRecord(releaseSnapshot.installation);
const templateKey =
asString(brandData.templateKey) ||
asString(releaseSnapshot.templateKey) ||
asString(installationData.templateKey) ||
asString(brandData.templateKey) ||
defaultBrandTemplateKey;
const template = releaseSnapshot.templateDefinition ?? getBrandTemplate(templateKey);
const capabilityData = asArray(releaseSnapshot.capabilities) as Array<Record<string, unknown>>;