Skip to content

Commit 2f84abc

Browse files
committed
Fix code typo in docs
1 parent 623f623 commit 2f84abc

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

docs/en/actions.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ A more practical example of real-world actions would be an action to checkout a
7676

7777
``` js
7878
actions: {
79-
checkout ({ commit, state }, payload) {
79+
checkout ({ commit, state }, products) {
8080
// save the items currently in the cart
8181
const savedCartItems = [...state.cart.added]
8282
// send out checkout request, and optimistically

docs/fr/actions.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ Un exemple plus pratique d'une application du monde réel serait une action pour
7676

7777
``` js
7878
actions: {
79-
checkout ({ commit, state }, payload) {
79+
checkout ({ commit, state }, products) {
8080
// sauvegarder les articles actuellement dans le panier
8181
const savedCartItems = [...state.cart.added]
8282
// envoyer la requête de checkout, et vider le panier

docs/ru/actions.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ store.dispatch({
7676

7777
``` js
7878
actions: {
79-
checkout ({ commit, state }, payload) {
79+
checkout ({ commit, state }, products) {
8080
// сохраним находящиеся на данный момент в корзине товары
8181
const savedCartItems = [...state.cart.added]
8282
// инициируем запрос и "оптимистично" очистим корзину

docs/zh-cn/actions.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ store.dispatch({
7676

7777
``` js
7878
actions: {
79-
checkout ({ commit, state }, payload) {
79+
checkout ({ commit, state }, products) {
8080
// 把当前购物车的物品备份起来
8181
const savedCartItems = [...state.cart.added]
8282
// 发出结账请求,然后乐观地清空购物车

0 commit comments

Comments
 (0)