// 可以在调用时将 this.$store.commit('myFooMethod', myFooArgs); // 简化为 this.myFooMethod(myFooArgs);这并不是必须的,你想只使用上面那种写法完全可以。
这并不是必须的,你想只使用上面那种写法完全可以。