action去commit mutations, 所以还要定义action. store.js 里面添加actions. 复制代码. const store = new Vuex.Store({ state: { count:0 }, ...
確定! 回上一頁