Files
ipms-sjy-ui/src/store/index.ts

13 lines
290 B
TypeScript
Raw Normal View History

import type { App } from 'vue'
import { createPinia } from 'pinia'
2024-02-29 23:14:47 +08:00
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
const store = createPinia()
2024-02-29 23:14:47 +08:00
store.use(piniaPluginPersistedstate)
export const setupStore = (app: App<Element>) => {
app.use(store)
}
export { store }