当前位置:网站首页>SAP Spartacus checkout 流程使用 url 粘贴直接跳转到 delivery mode不能打开页面的原因
SAP Spartacus checkout 流程使用 url 粘贴直接跳转到 delivery mode不能打开页面的原因
2022-06-11 13:12:00 【华为云】
http://localhost:4200/electronics-spa/en/USD/checkout/delivery-mode
没有任何错误消息,白屏:

能看到向 checkoutDeliveryMode step 发起跳转的事件:

Delivery Mode 实现的 CMS Component id:CheckoutDeliveryMode

CheckoutDeliveryMode 目前只激活了两个 Component guard:
https://github.com/SAP/spartacus/issues/8880
checkout/payment-details:
payment details 实现的 CMS Component ID:CheckoutPaymentDetails

- CheckoutAuthGuard
- CartNotEmptyGuard
直接访问 checkout,isStable 返回 false,所以无法继续下面的操作。

判断 cart 是否 stable:
如果一个 cart 已经加载完毕,且没有其他额外施加在其上的 operation,则我们说该 cart 已经 stable 了:

此时 state 里是空的:


这个原理很容易理解,直接在浏览器里粘贴 url,此时取 cart 明细的 API 都还没发出去,所以从 ngrx store 里根本取不到和 cart 相关的信息,所以 isStable 导致返回 false.
第26行代码:如果 predicate 返回 false,那么在第32行的IF 分支检查无法通过,不会继续接下来的 next 操作:

filter Operator 的实现里,如果 predicate 函数返回 false,第 32 行的 IF 分支进不去,执行链就从这里断掉了。

Kyma 运行时就是 Kubernetes cluster.
To manage resources and configurations from the command line, the tool kubectl can be used.
使用 kubectl 以命令行的方式管理资源和配置。
工具下载:
https://kubernetes.io/docs/tasks/tools/install-kubectl
执行文件:https://dl.k8s.io/release/v1.21.0/bin/windows/amd64/kubectl.exe
加到环境变量 PATH 里去:

登录 Kyma 控制台,点击 Get Kybeconfig:

同时得到 Kyma 版本号:
set KUBECONFIG=C:\app\kubeconfig.yml
然后执行命令行:
kubectl config get-contexts
能看到如下输出:

边栏推荐
- Network information system emergency response
- ecplise无法连接sql server
- PADS使用之繪制原理圖
- Does it affect children to wear Bluetooth headsets? How to protect children's ear health
- live share使用体验
- Deep learning and CV tutorial (14) | image segmentation (FCN, segnet, u-net, pspnet, deeplab, refinenet)
- 【接口】看接口路径 查接口
- 模态框关闭后清空模态框里选择的数据
- From real-time computing to streaming data warehouse, where will Flink go next?
- LNMP部署
猜你喜欢

Dbutil auxiliary class, manual commit transaction, metadata

Zhongfu Jinshi: with the rapid development of the intelligent bathroom industry, the intelligent toilet will usher in a highlight moment

Tawang food industry insight | China's dairy market analysis, competition pattern, development trend and thinking

关于分布式锁的续命问题——基于Redis实现的分布式锁

【信号去噪】基于稀疏性 (BEADS) 实现色谱基线估计和去噪附matlab代码和论文

31w赛题奖金!当 AI for Science 撞上“先导杯”,会擦出什么样的火花?
![[bug resolution] the form is paged to display the total data res.data total](/img/92/1ddde16d35465f8dd53ebf90e249b8.png)
[bug resolution] the form is paged to display the total data res.data total

How to write high-performance code (IV) optimize data access
![[interface] view the interface path and check the interface](/img/b2/8c7645c8f915a9c8cec21bf2937298.png)
[interface] view the interface path and check the interface

ecplise无法连接sql server
随机推荐
长连接简介
After five years of losing the lawsuit, the trillion reptile army is ready to move
Flink 从实时计算到流式数仓,下一步去往哪里?
不谈赛道,不聊风口,开源数据库巨头Cassandra如何在国内讲好“新故事” | C位面对面
Chapter V data type (IV)
TeaTalk·Online 演讲实录 | 圆满完结!安全上云,选对数据迁移策略很重要
I have solved a problem that makes me feel guilty: pycharm SSH debug always does not exist
两件小事,感受到了和大神的差距
【Multisim仿真】555闪灯实验
On the continuing Life of Distributed Locks - - Distributed Locks Based on redis
How does go reduce supply chain attacks?
【信号去噪】基于稀疏性 (BEADS) 实现色谱基线估计和去噪附matlab代码和论文
Luo Jing: connection Efficiency Optimization Practice
On software defects and loopholes
SQL的语法
How about NFT market? Why is NFT so popular? How to build NFT platform
Clear the selected data in the modal box after the modal box is closed
Simple score statistics
What do you need to do to "surpass" the general database in the time sequence scenario?
QQ pulls up Alipay H5 payment function