uni-app 配置Vuex Store
在uni-app中使用Vuex实现页面间的数据共享在项目目录下新建Store/index.jsStore/index.jsimport Vue from 'vue'import Vuex from 'vuex'Vue.use(Vuex)const store = new Vuex.Store({ state:{ data1: null, data2: [] }, mutations:{ updateData(state, _new){ this.state.
复制链接