摘要: 步骤概览 第一步:npm i vuex -S 或者 yarn add vuex -S (通常只是在开发阶段使用) 第二步: 创建store/index.js import { createStore } from 'vuex' 第三步:const store = createStore({ ...配 阅读全文
posted @ 2022-03-26 15:59 米娅儿 阅读(490) 评论(0) 推荐(0)
摘要: 步骤概览 第一步:npm i vuex -S 或者 yarn add vuex -S (通常只是在开发阶段使用) 第二步: 创建store/index.js import vuex from 'vuex' import vue from 'vue' 第三步:Vue.use(vuex) 第四步:con 阅读全文
posted @ 2022-03-26 15:42 米娅儿 阅读(234) 评论(0) 推荐(0)