This commit is contained in:
2026-03-22 13:55:23 +08:00
parent c3f196ded4
commit 69099986e0
616 changed files with 38942 additions and 3 deletions

View File

@@ -0,0 +1,17 @@
import type { App } from 'vue'
import { createPinia } from 'pinia'
import { createPersistedState } from 'pinia-plugin-persistedstate'
const pinia = createPinia()
const persistedState = createPersistedState({
storage: sessionStorage,
})
pinia.use(persistedState)
export function setupPinia(app: App) {
app.use(pinia)
}
export default pinia