Blame view

src/store/index.ts 187 Bytes
陈文彬 authored
1
import type { App } from 'vue';
Vben authored
2
import { createPinia } from 'pinia';
3
Vben authored
4
const store = createPinia();
vben authored
5
陈文彬 authored
6
7
8
export function setupStore(app: App<Element>) {
  app.use(store);
}
vben authored
9
Vben authored
10
export { store };