Blame view

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