Files
zy-client-a/ww_gb_Ticket_temp3/src/stores/counter.ts
telangpu cf55c2cad6 update
2026-04-28 00:42:28 +08:00

16 lines
275 B
TypeScript

import { defineStore } from "pinia";
export const useLoadingStore = defineStore("loading", {
state: () => ({
isLoading: false,
}),
actions: {
showLoading() {
this.isLoading = true;
},
hideLoading() {
this.isLoading = false;
},
},
});