1
2
3
4
5
6
7
8
9
10
11
12
| 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);
| }
|
| export { store };
|
|