Sign in

zhusen / kelude-outside-web · Files

GitLab

  • Go to dashboard
  • Project
  • Activity
  • Files
  • Commits
  • Builds 0
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • kelude-outside-web
  • src
  • stores
  • dialog.ts
  • up
      6ebe453f
    sanmu authored
    2023-07-09 17:03:13 +0800  
    Browse File ยป
dialog.ts 274 Bytes
Edit Raw Blame History
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
  }
})