You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
// stores/loading.js
|
|
import { defineStore } from 'pinia'
|
|
export const useLoadingStore = defineStore('loading', {
|
|
state: () => ({ isLoading: false }),
|
|
actions: {
|
|
show() {
|
|
this.isLoading = true
|
|
},
|
|
hide() {
|
|
this.isLoading = false
|
|
}
|
|
}
|
|
})
|