美文网首页
SAP Spartacus buildCmsStructure

SAP Spartacus buildCmsStructure

作者: 华山令狐冲 | 来源:发表于2021-09-28 09:37 被阅读0次

该方法被调用时,如果传入了 ComponentID,在 config.cmsStructure.components 结构里,新增一个值为 ComponentId 的结构,typeCode 和 flexType 都为 ComponentId:

例子:

如果还传入了 positionId,则在 slots 字段里,额外创建另一个结构体,key 为 positionId,值为 ComponentId:

例子:

Home 页面加载完毕后,该方法总共执行了两次:

更多Jerry的原创文章,尽在:"汪子熙":


相关文章

网友评论

      本文标题:SAP Spartacus buildCmsStructure

      本文链接:https://www.haomeiwen.com/subject/lfezvltx.html