wangjingchao 8 年之前
父節點
當前提交
2a67103a1f
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      docs/en/modules.md

+ 1 - 1
docs/en/modules.md

@@ -34,7 +34,7 @@ store.state.b // -> moduleB's state
 Inside a module's mutations and getters, The first argument received will be **the module's local state** instead of root state:
 Inside a module's mutations and getters, The first argument received will be **the module's local state** instead of root state:
 
 
 ``` js
 ``` js
-cosnt moduleA = {
+const moduleA = {
   state: { count: 0 },
   state: { count: 0 },
   mutations: {
   mutations: {
     increment: (state, rootState) {
     increment: (state, rootState) {