Files
financial_system_frontend/src/store/app.ts
T
2026-09-11 13:56:36 +08:00

12 lines
371 B
TypeScript

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 }
})