初始化
This commit is contained in:
commit
3a4e81a070
43 files changed
+10871
No files matched your search
@@ -0,0 +1,12 @@
|
||||
import { defineStore } from 'pinia'
|
||||
import { ref } from 'vue'
|
||||
|
||||
export const useAppStore = defineStore('app', () => {
|
||||
const sidebarCollapsed = ref(false)
|
||||
const loading = ref(false)
|
||||
const notifications = ref(3)
|
||||
|
||||
const toggleSidebar = () => { sidebarCollapsed.value = !sidebarCollapsed.value }
|
||||
|
||||
return { sidebarCollapsed, loading, notifications, toggleSidebar }
|
||||
})
|
||||