bunny-admin-element-thin-i18n/src/store/index.ts

13 lines
296 B
TypeScript
Raw Normal View History

2024-05-27 16:59:21 +08:00
import type { App } from "vue";
import { createPinia } from "pinia";
import piniaPluginPersistedState from "pinia-plugin-persistedstate";
2024-05-11 14:48:02 +08:00
const store = createPinia();
export function setupStore(app: App<Element>) {
store.use(piniaPluginPersistedState);
2024-05-11 14:48:02 +08:00
app.use(store);
}
export { store };