摘要: 一、vuex基本使用 1. 安装 npm i vuex -S 2. 导入 并 使用到项目中 import Vuex from 'vuex' vue.use(Vuex) 3. 创建 store 对象 const store = new Vuex.Store({ state:{ count = 0 } 阅读全文
posted @ 2022-05-17 17:26 RHCHIK 阅读(43) 评论(0) 推荐(0) 编辑