Skip to content

Commit

Permalink
Update structure.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Si Feng authored Nov 10, 2016
1 parent 7141fb0 commit 434402c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/zh-cn/structure.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ Vuex 并不限制你的代码结构。但是,它规定了一些需要遵守的

2. 提交 **mutation** 是更改状态的唯一方法,并且这个过程是同步的。

3. 异步逻辑都应该封装到 **action**里面。
3. 异步逻辑都应该封装到 **action** 里面。

只要你遵守以上规则,如何组织代码随你便。如果你的 store 文件太大,只需将 action、mutation、和 getters 分割到单独的文件。

Expand Down

0 comments on commit 434402c

Please sign in to comment.