xiaozhi-esp32-server/main/manager-mobile/src/store/index.ts
2025-08-11 15:48:28 +08:00

19 lines
405 B
TypeScript

import { createPinia } from 'pinia'
import { createPersistedState } from 'pinia-plugin-persistedstate' // 数据持久化
const store = createPinia()
store.use(
createPersistedState({
storage: {
getItem: uni.getStorageSync,
setItem: uni.setStorageSync,
},
}),
)
export default store
export * from './config'
export * from './plugin'
// 模块统一导出
export * from './user'