Initial commit

This commit is contained in:
lnljyang
2025-12-30 09:44:46 +08:00
commit 82b8d21506
147 changed files with 39113 additions and 0 deletions

24
store/index.js Normal file
View File

@@ -0,0 +1,24 @@
import Vue from "vue";
import Vuex from "vuex";
Vue.use(Vuex); //vue的插件机制
//Vuex.Store 构造器选项
const store = new Vuex.Store({
state: {
current: 0,
resources: [],
},
mutations: {
SET_RESOURCES(state, data) {
state.resources = data;
},
},
actions: {
setResources({ commit }, data) {
commit("SET_RESOURCES", data);
},
},
});
export default store;