vuex 的数据流向

vuex 的数据流向 1.用户触发行为actions 通过this.dispach(或者可以直接commit方法) 2.通过commit Mutations中的方法 改变state中 的值 3.最后通过this.$store.state.id的方法将值映射到页面上
相关文章
相关标签/搜索