Files
Aida_Purchaser_Front/src/stores/global.ts
李志鹏 8d28482783 初始化
2026-04-20 11:21:21 +08:00

15 lines
279 B
TypeScript

import { defineStore } from 'pinia'
import { ref, computed } from 'vue'
export const useGlobalStore = defineStore('global', () => {
const state = ref({
loading: false
})
const setLoading = (v: boolean) => { state.value.loading = v }
return {
state,
setLoading,
}
})