xlx_teacher_app/src/store/index.ts

19 lines
378 B
TypeScript
Raw Normal View History

2025-08-14 21:04:04 +08:00
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
// 模块统一导出
2025-08-30 12:29:31 +08:00
export * from './home'
2025-08-14 21:04:04 +08:00
export * from './user'