You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
414 B

  1. import { createPinia } from 'pinia'
  2. import persist from 'pinia-plugin-persistedstate'
  3. // 创建 pinia 实例
  4. const pinia = createPinia()
  5. // 使用持久化存储插件
  6. pinia.use(persist)
  7. // 导入所有模块
  8. export * from './modules/userInfo'
  9. export * from './modules/deviceInfo'
  10. export * from './modules/deepExploration'
  11. export * from './modules/login'
  12. // 默认导出,给 main.js 使用
  13. export default pinia