Skip to content

Commit

Permalink
同步官方文档
Browse files Browse the repository at this point in the history
  • Loading branch information
superRaytin authored Nov 13, 2019
1 parent c92dc97 commit 4b4a289
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/advanced/NonBlockingCalls.md
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ function* authorize(user, password) {
try {
const token = yield call(Api.authorize, user, password)
yield put({type: 'LOGIN_SUCCESS', token})
yield call(Api.storeItem, {token})
return token
} catch(error) {
yield put({type: 'LOGIN_ERROR', error})
}
Expand Down

0 comments on commit 4b4a289

Please sign in to comment.