天天看點

關于 SAP 電商雲 Spartacus UI 路由 routes 配置的資料源問題

準則

關于 SAP 電商雲 Spartacus UI 路由 routes 配置的資料源問題

content page routes 來自背景,而 product,category 的配置位于 Spartacus 層。

無論如何,都允許在 Spartacus 層修改。

例如 product route 配置,位于 default-routing-config.ts:

關于 SAP 電商雲 Spartacus UI 路由 routes 配置的資料源問題

以 myCompany 為例:

http://localhost:4299/powertools-spa/en/USD/organization

關于 SAP 電商雲 Spartacus UI 路由 routes 配置的資料源問題

請求 url:

https:///occ/v2/powertools-spa/cms/pages?pageType=ContentPage&pageLabelOrId=%2Forganization&lang=en&curr=USD

說明其類型為 ContentPage,url 為 organization

這些 url 通過 spartacussampledata 這個 extension 裡的 cms-responsive-content.impex 檔案,維護到 SAP Commerce Cloud 資料庫裡:

關于 SAP 電商雲 Spartacus UI 路由 routes 配置的資料源問題

繼續閱讀