Vuex的核心组成、版本问题及store.js的使用、 Vuex中存值、取值以及获取变量值、异步同步操作和Vuex后台交互
Vuex的核心组成、版本问题及store.js的使用、 Vuex中存值、取值以及获取变量值、异步同步操作和Vuex后台交互
//store
//初始值
//设置值mutations ---this.$store.commit('setDemoValue方法名', value);
//更新值action --this.$store.dispatch('模块文件名/方法名','');
//获取值getters---this.$store.getters.方法名
https://blog.csdn.net/weixin_44867717/article/details/124133304
转 : https://blog.csdn.net/weixin_65211978/article/details/126856245