freight-web/src/store/index.ts

9 lines
284 B
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { createPinia } from 'pinia'
import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
// 创建pinia实例imp
const pinia = createPinia()
// 导出pinia实例给main使用
pinia.use(piniaPluginPersistedstate)
export default pinia
export * from './modules/member'