vuex中mutations与actions的区别

要执行vuex中的函数,有两种方法:   1.commit,例如this.$store.commit("GETMODULESELECTLIST");    //mutations中的方法   2.dispatch,例如 this.$store.dispatch("getModuleSelectList");      //actions中的方法 两者之间的区别在于:   commit是提交执行mu
相关文章
相关标签/搜索