mirror of
https://gitee.com/mirrors/AllinSSL.git
synced 2026-03-29 08:43:25 +08:00
【同步】前端项目源码
【修复】工作流兼容问题
This commit is contained in:
10
frontend/packages/vue/pinia/src/index.ts
Normal file
10
frontend/packages/vue/pinia/src/index.ts
Normal file
@@ -0,0 +1,10 @@
|
||||
import { createPinia, defineStore, storeToRefs } from 'pinia'
|
||||
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
|
||||
|
||||
// 创建pinia实例
|
||||
const pinia = createPinia()
|
||||
|
||||
// 全局持久化
|
||||
pinia.use(piniaPluginPersistedstate)
|
||||
|
||||
export { pinia, defineStore, storeToRefs }
|
||||
Reference in New Issue
Block a user