const { loadWorkspaceWithFallback } = require("../../utils/runtime-workspace"); Page({ data: { brand: {}, presentation: {}, loading: true }, onLoad() { loadWorkspaceWithFallback() .then((workspace) => this.setData({ brand: workspace.brand || {}, presentation: workspace.brand?.visualPresentation?.home || {}, loading: false, }), ) .catch(() => this.setData({ loading: false })); }, inquire() { wx.navigateTo({ url: "/pages/inquiry/index" }); }, });