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

边栏推荐
- C language - data storage
- Node creates a template file with the art template template template engine
- Microsoft exposes another "scandal": watching VR porn in the office, "the father of hololens" is about to leave!
- On the continuing Life of Distributed Locks - - Distributed Locks Based on redis
- @How to resolve controller and requestmapping
- shader着色器
- JDBC连接池去做批量导入,每次运行500万数据,但是在中间就会出各种问题
- tf.data(二) —— 并行化 tf.data.Dataset 生成器
- How does go reduce supply chain attacks?
- UI inspiration analysis Notes 6: feature
猜你喜欢

如何写出高性能代码(四)优化数据访问
![InfoQ geek media's 15th anniversary essay solicitation - dynamic ranking of mobile terminal development [mui+flask+mongodb]](/img/92/50a92eb6b5c2ac3f58c499796a1e8c.png)
InfoQ geek media's 15th anniversary essay solicitation - dynamic ranking of mobile terminal development [mui+flask+mongodb]
![[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

马斯克称自己不喜欢做CEO,更想做技术和设计;吴恩达的《机器学习》课程即将关闭注册|极客头条...
![[untitled]](/img/f7/c8c41de567c4b137a1e72edebaf632.jpg)
[untitled]

UI inspiration analysis Notes 6: feature

NFT市场怎么样 为什么NFT能如此火爆 怎么搭建NFT平台

PADS使用之繪制原理圖

Clear the selected data in the modal box after the modal box is closed

BS-XX-007基于JSP实现户籍管理系统
随机推荐
From real-time computing to streaming data warehouse, where will Flink go next?
Condition debug of pycharm
How to synchronize openstack RDO source to local for offline installation
[ArcGIS]城市关联度分析
深度学习与CV教程(14) | 图像分割 (FCN,SegNet,U-Net,PSPNet,DeepLab,RefineNet)
程序员到了35岁之后的一些转型思考
【信号处理】数字信号处理Matlab设计附GUI界面和报告
Is it safe to open an account online in 2022?
Teatalk · online speech record | complete! It is important to select the right data migration strategy for safe cloud deployment
想要实现在时序场景下“远超”通用数据库,需要做到哪几点?
[background interaction] select to bind the data transferred in the background
jdbctemplate数据后台管理,不知道为什么添加用户的时候显示roleId为空
Audio adaptation of openharmony Standard System Porting
Today in history: Apple II comes out; Microsoft acquires gecad; The scientific and technological pioneer who invented the word "software engineering" was born
Tawang food industry insight | China's dairy market analysis, competition pattern, development trend and thinking
In 2022, capture these 12 data and analyze trends!
[acwing 11. solution number of knapsack problem] 01 knapsack + 01 knapsack + understand the specific meaning of 01 knapsack
The tree (AVL, 2-3-, red black, Huffman)
kubernetes 证书合集
Syntax of SQL