Skip to content

Commit 72e3af4

Browse files
booxoodyyx990803
authored andcommitted
Fix typo for doc actions.md (#202)
1 parent ba3b52d commit 72e3af4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

docs/en/actions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ If you write the action with ES6 destructuring style, make sure that the first a
181181
```javascript
182182
import {callee} from './anotherActionModule'
183183

184-
export const caller = ({dispatch, state, watch}) {
184+
export const caller = ({dispatch, state, watch}) => {
185185
dispatch('MUTATION_1')
186186
callee({state, watch})
187187
}
@@ -192,7 +192,7 @@ Otherwise, you should use the old-fashioned function syntax:
192192
```javascript
193193
import {callee} from './anotherActionModule'
194194

195-
export const caller = (store) {
195+
export const caller = (store) => {
196196
store.dispatch('MUTATION_1')
197197
callee(store)
198198
}

docs/zh-cn/actions.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,7 +181,7 @@ export const login = ({dispatch}, username, password) => {
181181
```javascript
182182
import {callee} from './anotherActionModule'
183183

184-
export const caller = ({dispatch, state, watch}) {
184+
export const caller = ({dispatch, state, watch}) => {
185185
dispatch('MUTATION_1')
186186
callee({state, watch})
187187
}
@@ -192,7 +192,7 @@ export const caller = ({dispatch, state, watch}) {
192192
```javascript
193193
import {callee} from './anotherActionModule'
194194

195-
export const caller = (store) {
195+
export const caller = (store) => {
196196
store.dispatch('MUTATION_1')
197197
callee(store)
198198
}

0 commit comments

Comments
 (0)