摘要: 模块化 + 命名空间 1. 目的: 让代码更好维护,让多种数据分类更加明确。 2. 修改 store.js const countAbout = { namespaced: true, // 开启命名空间 state: { x: 1 }, mutations: { ... }, actions: { 阅读全文
posted @ 2021-12-26 21:22 我就尝一口 阅读(425) 评论(0) 推荐(0) 编辑