会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
白房子
记录工作中遇到的问题
首页
管理
2021年2月19日
vuex中辅助函数的使用方法
摘要: mapState import { mapState } from 'vuex' export default { // ... computed:{ ...mapState({ // 箭头函数可使代码更简练 count: state => state.count, // 传字符串参数 'count
阅读全文
posted @ 2021-02-19 10:47 baifangzi
阅读(1467)
评论(0)
推荐(0)
编辑
公告