美文网首页SAPSAP 修行
使用SAP Spartacus的route给标准页面维护alia

使用SAP Spartacus的route给标准页面维护alia

作者: 华山令狐冲 | 来源:发表于2020-11-29 13:37 被阅读0次

源代码:

const CUSTOM_ROUTES: Routes = [
  { path: 'custom', component: CustomPageComponent, canActivate: [CmsPageGuard] },
  {
    path: 'faq-alias', component: PageLayoutComponent, canActivate: [CmsPageGuard],
    data: {
      pageLabel: 'faq'
    }
  }
]

最后的效果:

这个页面和我直接在Spartacus标准页面里点击help超链接打开的页面是一样的:

相关文章

网友评论

    本文标题:使用SAP Spartacus的route给标准页面维护alia

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