index.js 482 B

1234567891011121314151617181920
  1. import { defineStore } from '#q-app/wrappers'
  2. import { createPinia } from 'pinia'
  3. /*
  4. * If not building with SSR mode, you can
  5. * directly export the Store instantiation;
  6. *
  7. * The function below can be async too; either use
  8. * async/await or return a Promise which resolves
  9. * with the Store instance.
  10. */
  11. export default defineStore((/* { ssrContext } */) => {
  12. const pinia = createPinia()
  13. // You can add Pinia plugins here
  14. // pinia.use(SomePiniaPlugin)
  15. return pinia
  16. })