18 lines
415 B
TypeScript
18 lines
415 B
TypeScript
import type { App } from "vue";
|
|
import { createPinia } from "pinia";
|
|
|
|
const store = createPinia();
|
|
|
|
// 全局注册 store
|
|
export function setupStore(app: App<Element>) {
|
|
app.use(store);
|
|
}
|
|
|
|
export * from "./modules/app";
|
|
export * from "./modules/permission";
|
|
export * from "./modules/settings";
|
|
export * from "./modules/tags-view";
|
|
export * from "./modules/user";
|
|
export * from "./modules/dict";
|
|
export { store };
|