您的位置: 首页 > 文章 > vuex 的数据流向 vuex 的数据流向 分类: 文章 • 2024-04-22 11:51:07 vuex 的数据流向 1.用户触发行为actions 通过this.dispach(或者可以直接commit方法) 2.通过commit Mutations中的方法 改变state中 的值 3.最后通过this.$store.state.id的方法将值映射到页面上