Skip to content

Commit 3f03637

Browse files
committed
reflect vuejs#581 for all lang docs
1 parent 5ea7038 commit 3f03637

File tree

5 files changed

+10
-10
lines changed

5 files changed

+10
-10
lines changed

docs/fr/modules.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ De façon similaire, dans les actions du module, `context.state` exposera le sta
5757
const moduleA = {
5858
// ...
5959
actions: {
60-
incrementIfOdd ({ state, commit }) {
61-
if (state.count % 2 === 1) {
60+
incrementIfOddOnRootSum ({ state, commit, rootState }) {
61+
if (state.count + rootState.count % 2 === 1) {
6262
commit('increment')
6363
}
6464
}

docs/ja/modules.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ const moduleA = {
5757
const moduleA = {
5858
// ...
5959
actions: {
60-
incrementIfOdd ({ state, commit }) {
61-
if (state.count % 2 === 1) {
60+
incrementIfOddOnRootSum ({ state, commit, rootState }) {
61+
if (state.count + rootState.count % 2 === 1) {
6262
commit('increment')
6363
}
6464
}

docs/kr/modules.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ const moduleA = {
5757
const moduleA = {
5858
// ...
5959
actions: {
60-
incrementIfOdd ({ state, commit }) {
61-
if (state.count % 2 === 1) {
60+
incrementIfOddOnRootSum ({ state, commit, rootState }) {
61+
if (state.count + rootState.count % 2 === 1) {
6262
commit('increment')
6363
}
6464
}

docs/ru/modules.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ const moduleA = {
5757
const moduleA = {
5858
// ...
5959
actions: {
60-
incrementIfOdd ({ state, commit }) {
61-
if (state.count % 2 === 1) {
60+
incrementIfOddOnRootSum ({ state, commit, rootState }) {
61+
if (state.count + rootState.count % 2 === 1) {
6262
commit('increment')
6363
}
6464
}

docs/zh-cn/modules.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,8 +57,8 @@ const moduleA = {
5757
const moduleA = {
5858
// ...
5959
actions: {
60-
incrementIfOdd ({ state, commit }) {
61-
if (state.count % 2 === 1) {
60+
incrementIfOddOnRootSum ({ state, commit, rootState }) {
61+
if (state.count + rootState.count % 2 === 1) {
6262
commit('increment')
6363
}
6464
}

0 commit comments

Comments
 (0)