index.ts 570 B

12345678910111213141516171819202122
  1. /*
  2. * @Author: liuJie
  3. * @Date: 2026-01-26 21:52:39
  4. * @LastEditors: liuJie
  5. * @LastEditTime: 2026-01-27 10:10:22
  6. * @Describe: file describe
  7. */
  8. import type { App } from 'vue'
  9. import { createPinia } from 'pinia'
  10. import { useDashboardStore } from './modules/dashboard'
  11. import { usePermissionStore } from './modules/permission.store'
  12. import { useRunnerStore } from './modules/runner.store'
  13. const pinia = createPinia()
  14. const store = (app: App<Element>) => {
  15. app.use(pinia)
  16. }
  17. export { pinia, useDashboardStore, usePermissionStore, useRunnerStore }
  18. export default store