主页框架更新

This commit is contained in:
李志鹏
2026-02-03 11:11:04 +08:00
parent 6f8091a5c5
commit e8de1ac3b4
20 changed files with 379 additions and 16 deletions

View File

@@ -2,13 +2,16 @@ import { defineStore } from 'pinia'
import { ref, computed } from 'vue'
export const useGlobalStore = defineStore('global', () => {
const state = ref({
loading: false
loading: false,// 全局loading
homeLeftNavCollapse: false,// 首页左侧导航是否折叠
})
const setLoading = (v: boolean) => { state.value.loading = v }
const setHomeLeftNavCollapse = (v: boolean) => { state.value.homeLeftNavCollapse = v }
return {
state,
setLoading,
setHomeLeftNavCollapse,
}
})