index.ts 291 B

123456789101112
  1. import type { App } from 'vue';
  2. import { createPinia } from 'pinia';
  3. import { registerPiniaPersistPlugin } from '@/store/plugin/persist';
  4. const store = createPinia();
  5. registerPiniaPersistPlugin(store);
  6. export function setupStore(app: App<Element>) {
  7. app.use(store);
  8. }
  9. export { store };