当前位置:网站首页>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
能看到如下输出:

边栏推荐
- 求你了,不要再在对外接口中使用枚举类型了!
- Tawang food industry insight | China's dairy market analysis, competition pattern, development trend and thinking
- 【接口】看接口路径 查接口
- NFT市场怎么样 为什么NFT能如此火爆 怎么搭建NFT平台
- 从QUIC到TCP
- 刚高考完有些迷茫不知道做些什么?谈一谈我的看法
- Zhongfu Jinshi: with the rapid development of the intelligent bathroom industry, the intelligent toilet will usher in a highlight moment
- 启封easy QF PDA帮助企业提升ERP的管理水平
- How can non-standard automation equipment manufacturing enterprises achieve rapid and accurate quotation with the help of ERP system?
- How can mechanical equipment manufacturing enterprises manage outsourcing with the help of ERP system?
猜你喜欢

看不懂Kotlin源码?从Contracts 函数说起~

面试造航母,入职拧螺丝,工资...

Live share experience
![[clearos] install the clearos system](/img/fe/8080c96ea18eb9afd4c4cff2c98b27.jpg)
[clearos] install the clearos system

31w赛题奖金!当 AI for Science 撞上“先导杯”,会擦出什么样的火花?

【bug解决】表单分页,显示总数据res.data.total

详解C语言实参与形参的区别

Dbutil auxiliary class, manual commit transaction, metadata

關於分布式鎖的續命問題——基於Redis實現的分布式鎖

How can non-standard automation equipment manufacturing enterprises achieve rapid and accurate quotation with the help of ERP system?
随机推荐
Adobe Premiere foundation - batch material import sequence - variable speed and rewind (recall) - continuous action shot switching - subtitle requirements (13)
2022 年,捕捉这 12 个数据和分析趋势!
常用字体介绍
Gb28181 protocol has become the mainstream in the market. How to choose the appropriate security monitoring video solution?
Add environment path
. The way to prove the effect of throwing exceptions on performance in. Net core
[untitled]
从QUIC到TCP
Development of smart contract DAPP system for TRX wave field chain
Which brand of bone conduction Bluetooth headset is good? Five most popular bone conduction Bluetooth headsets
On software defects and loopholes
Number selection (greed)
Shader shader
刚高考完有些迷茫不知道做些什么?谈一谈我的看法
UI inspiration analysis Notes 6: feature
启牛商学院给的券商账户是安全的吗?开户收费吗
Does it affect children to wear Bluetooth headsets? How to protect children's ear health
kubernetes 二进制安装(v1.20.16)(五)验证 master 部署
Go 如何减少供应链攻击?
Deep learning and CV tutorial (14) | image segmentation (FCN, segnet, u-net, pspnet, deeplab, refinenet)