14 lines
258 B
TypeScript
14 lines
258 B
TypeScript
// stores/loadingStore.ts
|
|
import { defineStore } from "pinia";
|
|
|
|
export const useLoadingStore = defineStore("loading", {
|
|
state: () => ({
|
|
isLoading: false,
|
|
}),
|
|
actions: {
|
|
setLoading(value: boolean) {
|
|
this.isLoading = value;
|
|
},
|
|
},
|
|
});
|