src/store/index.ts
@@ -1,7 +1,9 @@ import type { App } from 'vue'; import { createPinia } from 'pinia'; import { registerPiniaPersistPlugin } from '@/store/plugin/persist'; const store = createPinia(); registerPiniaPersistPlugin(store); export function setupStore(app: App<Element>) { app.use(store);