摘要: 在对Vuex进行模块化开发的时候, const store = new Vuex.Store({ modules: { a: moduleA, b: moduleB } }) 我们可以通过store.state.a取得 moduleA 的状态,在store注入到vue实例的时候,子组件可以通过thi 阅读全文
posted @ 2019-03-13 11:27 姜瑞涛 阅读(159) 评论(0) 推荐(0)