初始化

This commit is contained in:
Weiming committed 2026-09-11 13:56:36 +08:00
commit 3a4e81a070
43 files changed
+10871

No files matched your search

+12
View File
@@ -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 }
})
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.