斯巴达克斯 5.2 版智能编辑中缺少透视工具栏

问题描述 投票:0回答:0

我正在尝试使用 SPARTACUS 5.2 设置 SmartEdit,我尝试按照下面的文档进行操作

https://help.sap.com/docs/SAP_COMMERCE_COMPOSABLE_STOREFRONT/962112809f9a48f9b36aa05b208b3731/266db66bf8a7423193f30b5cacccd7ce.html?q=Smart%20Edit#loio70945ce2a31e4a44bcf7df86013ea117

我可以登录,但顶部缺少透视工具栏。也将处于加载状态,如下所示。

以下是斯巴达克斯的变化

  1. 在 angular.json 文件中添加以下代码片段

{ "glob": "**/*", “输入”:“node_modules/@spartacus/smartedit/assets”, “输出”:“资产/” }

  1. 更改 spartacus-configuration.module.ts 如下
provideConfig(<SmartEditConfig>{
  smartEdit: {
    storefrontPreviewRoute: 'cx-preview',
    allowOrigin: 'localhost:9002',
  },
}),
  1. 在 whiteListedStorefronts 中添加了 URL
["https://localhost:4200"]

但是,我的 SmartEdit 显示加载状态

我检查了网络选项卡,但没有看到 webApplicationInjector.js 调用失败,它给出 200 OK

我还缺少其他配置吗?谢谢你的帮助

sap-commerce-cloud sap spartacus-storefront smartedit
© www.soinside.com 2019 - 2024. All rights reserved.