摘要: this.$store.dispatch() 与 this.$store.commit()方法的区别总的来说他们只是存取方式的不同,两个方法都是传值给vuex的mutation改变statethis.$store.dispatch() :含有异步操作,例如向后台提交数据,写法:this.$store 阅读全文
posted @ 2021-05-19 17:24 98。 阅读(1721) 评论(0) 推荐(0)