13 lines
273 B
TypeScript
13 lines
273 B
TypeScript
![]() |
import type { App } from 'vue';
|
||
|
import { createPinia } from 'pinia';
|
||
|
import { resetSetupStore } from './plugins';
|
||
|
|
||
|
/** Setup Vue store plugin pinia */
|
||
|
export function setupStore(app: App) {
|
||
|
const store = createPinia();
|
||
|
|
||
|
store.use(resetSetupStore);
|
||
|
|
||
|
app.use(store);
|
||
|
}
|