会员
周边
众包
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Niky7777
博客园
首页
新随笔
管理
2020年7月4日
Vuex模块化用法 跨模块调用方法
摘要: 跨模块调用state 使用rootState调用根state,拿到对应模块下的state actionFntion({state, commit, rootState}){ console.log(rootState.moduleA.a) } 跨模块调用其他模块mutation和action mod
阅读全文
posted @ 2020-07-04 15:01 Niky99
阅读(2704)
评论(0)
推荐(0)
编辑
公告