UnisKB/ui/src/stores/index.ts

13 lines
279 B
TypeScript
Raw Normal View History

2023-10-19 10:18:45 +00:00
import { createPinia } from 'pinia'
const store = createPinia()
export { store }
import useUserStore from './modules/user'
2023-11-02 01:56:14 +00:00
import useDatasetStore from './modules/dataset'
2023-09-15 09:40:35 +00:00
2023-10-19 10:18:45 +00:00
const useStore = () => ({
2023-11-02 01:56:14 +00:00
user: useUserStore(),
dataset: useDatasetStore()
2023-10-19 10:18:45 +00:00
})
2023-09-15 09:40:35 +00:00
2023-10-19 10:18:45 +00:00
export default useStore