2022年1月23日
摘要: 一、state (提供唯一的公共数据源) 方式1 在div中,$store.state.count 方式2 import {mapState} from ‘vuex’ computed:{ …mapState([‘count’]) } 在div中直接使用,{{count}} 二、 mutations 阅读全文
posted @ 2022-01-23 18:51 xiaobailang 阅读(549) 评论(0) 推荐(0)