摘要: 首先,我们应该知道getters是vuex中的特殊表达部分 不使用map辅助函数: computed: { test:()=> this.$store.getters.doSome } 使用map辅助函数: computed: { ...mapGetters({ 'test': 'doSome' } 阅读全文
posted @ 2019-12-27 19:31 阿东哟 阅读(14905) 评论(4) 推荐(2) 编辑