天天看點

關于SAP Spartacus ManageUnitsListComponent的一些試錯

從CMS API傳回的響應能看出,CMS Component的名稱:ManageUnitsListComponent:

關于SAP Spartacus ManageUnitsListComponent的一些試錯

在units.config.ts檔案裡維護了該CMSComponent到Angular Component的映射:UnitListComponent:

如果把上圖124行改成ManageUnitsListComponent2:

關于SAP Spartacus ManageUnitsListComponent的一些試錯

最後的結果,點選units之後不會有任何内容渲染出來:

如果把ManageUnitsListComponent映射成另一個Angular Component:

最後會報SplitViewService的錯誤:

關于SAP Spartacus ManageUnitsListComponent的一些試錯
關于SAP Spartacus ManageUnitsListComponent的一些試錯

如果把UnitDetailsComponent的路由配置注釋掉之後:

點選UnitListComponent的某一行,将無法打開UnitDetailsComponent頁面:

關于SAP Spartacus ManageUnitsListComponent的一些試錯
關于SAP Spartacus ManageUnitsListComponent的一些試錯

删除router-outlet節點之後,同樣,unitDetail也無法注入了: