摘要: 由于在vue3 compositionApi中 setup函数无法获取this,在使用vuex的时候获取this.$store.state.xx会比较繁琐,而vuex中的函数mapState返回值为函数类型,无法使用computed直接返回具体的数值(会提示缺失$stote),考虑使用bind函数重 阅读全文
posted @ 2022-02-08 23:01 Frose 阅读(498) 评论(0) 推荐(0)