摘要: 1.mapState方法:用于映射state中的数据为计算属性 computed: { //对象写法 ...mapState({ sum: "sum", role: "role", age: "age", ability: "ability", //数组写法 ...mapState(["sum", 阅读全文
posted @ 2022-04-15 18:41 清水紅葉 阅读(148) 评论(0) 推荐(0) 编辑