You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
320 B

2 months ago
  1. import { defineStore } from 'pinia'
  2. import { ref } from 'vue'
  3. export const useSkeletonStore = defineStore('skeleton', () => {
  4. const isLoading = ref(false)
  5. function startLoading() {
  6. isLoading.value = true
  7. }
  8. function endLoading() {
  9. isLoading.value = false
  10. }
  11. return { isLoading, startLoading, endLoading }
  12. })