vehicle-monitor/src/store/index.ts

12 lines
209 B
TypeScript
Raw Normal View History

2025-02-25 18:29:26 +08:00
import { createPinia } from 'pinia';
2025-02-26 16:31:59 +08:00
import type { App } from 'vue';
2025-02-25 18:29:26 +08:00
const store = createPinia();
// 全局注册 store
export function setupStore(app: App<Element>) {
2025-02-26 16:31:59 +08:00
app.use(store);
2025-02-25 18:29:26 +08:00
}
2025-05-24 13:52:02 +08:00
export { store };