You've already forked AstralRinth
forked from didirus/AstralRinth
14 lines
259 B
JavaScript
14 lines
259 B
JavaScript
import { defineStore } from 'pinia'
|
|
|
|
export const useLoading = defineStore('loadingStore', {
|
|
state: () => ({ loading: false }),
|
|
actions: {
|
|
startLoading() {
|
|
this.loading = true
|
|
},
|
|
stopLoading() {
|
|
this.loading = false
|
|
},
|
|
},
|
|
})
|