摘要: vuex 中有5个属性:state, mutations, actions, getters,modules. vuex 中修改 state属性中值的唯一方法就是提交 mutation,但 mutations 是同步方法, actions 是异步方法 在项目中安装 vuex: npm i vuex 阅读全文
posted @ 2021-02-01 00:57 neozheng 阅读(728) 评论(0) 推荐(0) 编辑