upgrade code

This commit is contained in:
ctengiz
2025-01-15 11:50:12 +03:00
parent 20e4a15286
commit a2215b9363
7 changed files with 78 additions and 9 deletions

View File

@@ -3,12 +3,14 @@
import { EventBus } from 'quasar'
import { boot } from 'quasar/wrappers'
export default boot(({ app }) => {
const bus = new EventBus()
const bus = new EventBus()
export default boot(({ app }) => {
// for Options API
app.config.globalProperties.$bus = bus
// for Composition API
app.provide('bus', bus)
})
export { bus }