会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
理想三旬·
博客园
首页
新随笔
联系
订阅
管理
2021年8月25日
Vuex-Getter
摘要: Getter 有时候我们需要从 store 中的 state 中派生出一些状态,例如对列表进行过滤并计数: computed: { doneTodosCount () { return this.$store.state.todos.filter(todo => todo.done).length
阅读全文
posted @ 2021-08-25 13:23 理想三旬·
阅读(49)
评论(0)
推荐(0)
编辑
公告