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) => { app.use(store) store.use(piniaPluginPersistedstate) }