Skip to content

Add space #454

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 10, 2016
Merged
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/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