dialog.ts 274 Bytes Edit Raw Blame History Permalink 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 import { ref } from 'vue' import { defineStore } from 'pinia' export const useDialogStore = defineStore('dialog', () => { const dialog = ref(false) const updateDialog = (value: boolean) => { dialog.value = value } return { dialog, updateDialog } })