index.ts 391 B

1234567891011121314
  1. // Copyright (C) 2012-2021 Zammad Foundation, https://zammad-foundation.org/
  2. import type { App } from 'vue'
  3. import { createPinia, Pinia } from 'pinia'
  4. import PiniaSharedState from '@common/stores/plugin/sharedState'
  5. const store: Pinia = createPinia()
  6. store.use(PiniaSharedState({ enabled: false }))
  7. export default function initializeStore(app: App) {
  8. app.use(store)
  9. }
  10. export { store }