Blame view

src/store/index.ts 494 Bytes
532def1c   王彪总   新版本
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
  import { createPinia } from 'pinia'
  import type { App } from 'vue'
  
  const store = createPinia()
  
  export function setupStore(app: App) {
    app.use(store)
  }
  
  export { store }
  
  // 统一导出各模块 store,业务代码从 '@/store' 引入即可
  export { useAppStore } from './modules/app'
  export { useUserStore } from './modules/user'
  export { usePermissionStore } from './modules/permission'
  export { useDictStore } from './modules/dict'
  export { useTagsViewStore } from './modules/tagsView'