sanmu
authored
|
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
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
}
})
|