This commit is contained in:
lzp
2026-03-03 15:39:54 +08:00
parent 76afe1022f
commit b3b7ce2f2a
15 changed files with 141 additions and 46 deletions

View File

@@ -5,16 +5,19 @@ export const useGlobalStore = defineStore('global', () => {
loading: false,// 全局loading
view_loading: false,// 页面跳转loading
homeLeftNavCollapse: false,// 首页左侧导航是否折叠
homeAnimation: false,// 首页动画
})
const setLoading = (v: boolean) => { state.value.loading = v }
const setViewLoading = (v: boolean) => { state.value.view_loading = v }
const setHomeLeftNavCollapse = (v: boolean) => { state.value.homeLeftNavCollapse = v }
const setHomeAnimation = (v: boolean) => { state.value.homeAnimation = v }
return {
state,
setLoading,
setViewLoading,
setHomeLeftNavCollapse,
setHomeAnimation,
}
})