摘要: State 1、概念:state提供唯一的公共数据源,所有的共享数据都要统一放到store的state中进行存储 state: { count: 0}, 2、组件访问State中数据的方式: this.$store.state.全局数据名称 Mutations 1、概念:Mutations用于变更s 阅读全文
posted @ 2022-02-10 16:26 壮灬哥 阅读(31) 评论(0) 推荐(0) 编辑