Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/en/actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ A more practical example of real-world actions would be an action to checkout a

``` js
actions: {
checkout ({ commit, state }, payload) {
checkout ({ commit, state }, products) {
// save the items currently in the cart
const savedCartItems = [...state.cart.added]
// send out checkout request, and optimistically
Expand Down
2 changes: 1 addition & 1 deletion docs/fr/actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ Un exemple plus pratique d'une application du monde réel serait une action pour

``` js
actions: {
checkout ({ commit, state }, payload) {
checkout ({ commit, state }, products) {
// sauvegarder les articles actuellement dans le panier
const savedCartItems = [...state.cart.added]
// envoyer la requête de checkout, et vider le panier
Expand Down
2 changes: 1 addition & 1 deletion docs/ru/actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ store.dispatch({

``` js
actions: {
checkout ({ commit, state }, payload) {
checkout ({ commit, state }, products) {
// сохраним находящиеся на данный момент в корзине товары
const savedCartItems = [...state.cart.added]
// инициируем запрос и "оптимистично" очистим корзину
Expand Down
2 changes: 1 addition & 1 deletion docs/zh-cn/actions.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ store.dispatch({

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