会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
宸泽岚
博客园
首页
新随笔
联系
订阅
管理
2021年1月20日
vuex存储
摘要: vuex有两种存储方式 commit 和dispatch commit属于同步操作 存储 this.$store.commit('存的名字',name) 取值 this.$store.state.存的名字 dispatch属于异步操作 存储 this.$store.dispatch('存的名字',n
阅读全文
posted @ 2021-01-20 10:48 宸泽岚
阅读(217)
评论(0)
推荐(0)
编辑
公告