1234567891011121314151617181920 |
- import {
- createPinia
- } from 'pinia'
- // 引入持久化插件
- import persist from 'pinia-plugin-persistedstate'
- const pinia = createPinia()
- // 使用持久化插件
- pinia.use(persist)
- export default pinia
- // import { useUserStore } from '@/store/modules/user.js'
- // export { useUserStore }
- // import { useCounterStore } from '@/store/modules/counter.js'
- // export { useCounterStore }
- // 简写
- export * from './modules/user.js'
- export * from './modules/system.js'
|