|
1
|
import type { App } from 'vue';
|
Vben
authored
|
2
|
import { createPinia } from 'pinia';
|
vben
authored
|
3
|
|
Vben
authored
|
4
|
const store = createPinia();
|
vben
authored
|
5
|
|
|
6
7
8
|
export function setupStore(app: App<Element>) {
app.use(store);
}
|
vben
authored
|
9
|
|
Vben
authored
|
10
|
export { store };
|