import { defineStore } from "pinia";

export const useLoadingStore = defineStore('loading', {
  state: () => ({
    // 是否显示loading
    visible: false,
  }),
  actions: {
    show() {
      this.visible = true
    },
    hide() {
      this.visible = false
    }
  }
})
