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.
14 lines
268 B
JavaScript
14 lines
268 B
JavaScript
2 weeks ago
|
// stores/loading.js
|
||
|
import { defineStore } from 'pinia'
|
||
|
export const useLoadingStore = defineStore('loading', {
|
||
|
state: () => ({ isLoading: false }),
|
||
|
actions: {
|
||
|
show() {
|
||
|
this.isLoading = true
|
||
|
},
|
||
|
hide() {
|
||
|
this.isLoading = false
|
||
|
}
|
||
|
}
|
||
|
})
|