2023年3月20日
摘要: 1.普通的计算属性返回state中数据时,都要加this.$store.state.xxx computed: { categoryList() { return this.$store.state.home.categoryList; } } 如果有很多个计算属性的话,那么每一个都要加上this. 阅读全文
posted @ 2023-03-20 10:00 zy89898976 阅读(73) 评论(0) 推荐(0)