Initial commit: 网络验证平台
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user