mirror of
https://github.com/chansee97/nova-admin.git
synced 2025-09-01 03:55:54 +08:00
11 lines
275 B
TypeScript
11 lines
275 B
TypeScript
import { createPinia } from 'pinia';
|
|
import piniaPluginPersist from 'pinia-plugin-persist';
|
|
import type { App } from 'vue';
|
|
|
|
export function setupStore(app: App) {
|
|
const store = createPinia();
|
|
store.use(piniaPluginPersist);
|
|
app.use(store);
|
|
}
|
|
export * from './modules';
|