mirror of
https://github.com/XiaoDaiGua-Ray/ray-template.git
synced 2025-04-06 03:57:49 +08:00
16 lines
427 B
TypeScript
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)
|
|
}
|