dialog.ts 366 Bytes
import { ref } from 'vue'
import { defineStore } from 'pinia'

export const useDialogStore = defineStore('dialog', () => {
  const dialog = ref(false)

  const updateDialog = (value: boolean) => {
    console.log('%c [ value ]-8', 'font-size:13px; background:pink; color:#bf2c9f;', value)
    dialog.value = value
  }

  return {
    dialog,
    updateDialog
  }
})