12 lines
267 B
JavaScript
12 lines
267 B
JavaScript
import { defineStore } from 'pinia'
|
|
import { getCurrentInstance } from 'vue'
|
|
|
|
export const globalStore = defineStore('crm-global', () => {
|
|
const app = getCurrentInstance()
|
|
const { $dialog } = app.appContext.config.globalProperties
|
|
|
|
return {
|
|
$dialog,
|
|
}
|
|
})
|