2024-02-17 13:52:03 +08:00

13 lines
254 B
TypeScript

import type { App } from 'vue'
import { createPinia } from 'pinia'
import piniaPersist from 'pinia-plugin-persist'
const store = createPinia()
store.use(piniaPersist)
export function setupStore(app: App<Element>) {
app.use(store)
}
export { store }