第一次提交

This commit is contained in:
wangxiaowei
2025-06-11 10:21:51 +08:00
commit 52932d54b1
2341 changed files with 185283 additions and 0 deletions

31
store/index.js Normal file
View File

@ -0,0 +1,31 @@
import Vue from 'vue'
import Vuex from "vuex"
Vue.use(Vuex)
export default new Vuex.Store({
// 全局属性变量
state: { // state的作用是定义属性变量。定义一个参数
theme: '',
footTab:'',
points_name:'积分'
},
// 全局同步方法在methods{this.$store.commit("changeTheme")}
mutations: {
changeTheme(state, value) {
state.theme = value;
},
changefootTab(state, value) {
state.footTab = value;
},
changePoints(state, value) {
state.points_name = value;
}
},
getters: {
},
actions: {
}
})