2020年6月10日

this.$store.dispatch() 与 this.$store.commit()方法的区别

摘要: commit: 同步操作 this.$store.commit('方法名',值)【存储】 this.$store.state.方法名【取值】 dispatch: 异步操作 this.$store.dispatch('方法名',值)【存储】 this.$store.getters.方法名【取值】 当操 阅读全文

posted @ 2020-06-10 15:45 年夜饭 阅读(7722) 评论(0) 推荐(1) 编辑

导航