摘要:
新建store.js // store/index.js import { createStore } from 'vuex'; const store = createStore({ state() { return { count: 0, userInfo: null, name:"hq" }; 阅读全文
posted @ 2025-04-11 08:23
小小强学习网
阅读(13)
评论(0)
推荐(0)
摘要:
新建store.js import Vue from 'vue' import Vuex from 'vuex' Vue.use(Vuex) const store = new Vuex.Store({ state: { count: 0, clist:[1,2,3,4,6,6,7,8,9,0], 阅读全文
posted @ 2025-04-11 08:06
小小强学习网
阅读(11)
评论(0)
推荐(0)