mirror of
https://gitee.com/h_mo/uniapp-vue3-vite-ts-template
synced 2025-04-06 03:58:03 +08:00
11 lines
187 B
TypeScript
11 lines
187 B
TypeScript
import type { App } from 'vue';
|
|
import { createPinia } from 'pinia';
|
|
|
|
const store = createPinia();
|
|
|
|
export function setupStore(app: App<Element>) {
|
|
app.use(store);
|
|
}
|
|
|
|
export { store };
|