This commit is contained in:
张成
2025-12-22 16:26:59 +08:00
parent aa2d03ee30
commit e17d5610f5
54 changed files with 11735 additions and 3 deletions

28
app/store/modules/app.js Normal file
View File

@@ -0,0 +1,28 @@
/**
* 应用全局状态管理
*/
export default {
namespaced: true,
state: {
currentVersion: '1.0.0',
isLoading: true,
startTime: Date.now()
},
mutations: {
SET_VERSION(state, version) {
state.currentVersion = version;
},
SET_LOADING(state, loading) {
state.isLoading = loading;
}
},
actions: {
setVersion({ commit }, version) {
commit('SET_VERSION', version);
},
setLoading({ commit }, loading) {
commit('SET_LOADING', loading);
}
}
};