会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
zhx119
Powered by
博客园
博客园
|
首页
|
新随笔
|
联系
|
订阅
|
管理
2019年8月25日
vue vuex使用注意
摘要: 1 在页面中注入了store 每个实例都会存在一个属性$store 2 子模块的状态 $store.state.user.userName 模块.属性 3 假如在vuex中用到模块 最好使用辅助方法, 如果有子模块,mapState,mapActions,mapMutations不要把子模块放前面例
阅读全文
posted @ 2019-08-25 15:49 zhx119
阅读(132)
评论(0)
推荐(0)
编辑