瀏覽代碼

Merge pull request #69 from jbruni/patch-4

concepts.md - include Vue.use(Vuex) call
Evan You 9 年之前
父節點
當前提交
3c02f36490
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. 3 0
      docs/en/concepts.md

+ 3 - 0
docs/en/concepts.md

@@ -21,8 +21,11 @@ Why do we differentiate between *mutations* and *actions*, rather then just simp
 Creating a Vuex store is pretty straightforward - just put the aforementioned ingredients together:
 
 ``` js
+import Vue from 'vue'
 import Vuex from 'vuex'
 
+Vue.use(Vuex)
+
 const store = new Vuex.Store({
   state: { ... },
   mutations: { ... },