Sign in

canrd-main / canrud-nuxt-front · Files

GitLab

  • Go to group
  • Project
  • Activity
  • Files
  • Commits
  • Builds 0
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • canrud-nuxt-front
  • stores
  • dialog.ts
  • feat: url存在flag才会执行弹窗
      d22a2640
    sanmu authored
    2024-05-27 23:23:08 +0800  
    Browse Code »
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
  }
})