2023-01-28 16:51:15 +08:00

16 lines
427 B
TypeScript

import piniaPluginPersistedstate from 'pinia-plugin-persistedstate'
import type { App } from 'vue'
export { useSetting } from './modules/setting' // import { useSetting } from '@/store' 即可使用
export { useMenu } from './modules/menu'
export { useSignin } from './modules/signin'
const store = createPinia()
export const setupStore = (app: App<Element>) => {
app.use(store)
store.use(piniaPluginPersistedstate)
}