Indi
ZoDream's Blog zodream.cn

为什么用 实现多页面同步共享数据,全局状态管理,也可以当作内存缓存来用 怎么用 简单使用 通过 state 存储数据 通过 computed 实现方法获取 state 中的值或定义 getters 获取 定义 mutations 更新 state 数据, 通过 store.commit 触发 mutation 定义 actions 封装 store.commit 触发 多模块 modules 每一…

讨论

还没有评论,来说第一句吧。

ZoDream's Blog 的其他文章