mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-27 04:49:47 +01:00
- English locale defaults; remove duplicate zh-only locale files - SM2 utility sharing with the web client where applicable
20 lines
438 B
TypeScript
20 lines
438 B
TypeScript
import { createPinia } from 'pinia'
|
|
import { createPersistedState } from 'pinia-plugin-persistedstate' // Data persistence
|
|
|
|
const store = createPinia()
|
|
store.use(
|
|
createPersistedState({
|
|
storage: {
|
|
getItem: uni.getStorageSync,
|
|
setItem: uni.setStorageSync,
|
|
},
|
|
}),
|
|
)
|
|
|
|
export default store
|
|
|
|
export * from './config'
|
|
export * from './plugin'
|
|
export * from './speedPitch'
|
|
// Module unified export
|
|
export * from './user'
|