feat: 收口多品牌与模板构建基础

This commit is contained in:
que01 committed 2026-09-25 02:55:46 +08:00
1 parent 0425a1c672
commit 77224ea51f
317 files changed
+11290 -1158

No files matched your search

+17
View File
@@ -0,0 +1,17 @@
const { loadWorkspaceWithFallback } = require("../../utils/runtime-workspace");
Page({
data: { brand: {}, templateKey: "", presentation: {}, navigation: [], loading: true },
onLoad() {
loadWorkspaceWithFallback()
.then((workspace) =>
this.setData({
brand: workspace.brand || {},
templateKey: workspace.visualTemplate?.key || "",
presentation: workspace.brand?.visualPresentation?.home || {},
navigation: workspace.navigation || [],
loading: false,
}),
)
.catch(() => this.setData({ loading: false }));
},
});