mirror of
https://github.com/keven1024/015.git
synced 2026-05-26 07:08:02 +00:00
17 lines
348 B
TypeScript
17 lines
348 B
TypeScript
import { defineStore } from 'pinia'
|
|
import type { DrawerItem } from '@/components/GlobalDrawer.vue'
|
|
|
|
type StoreProps = {
|
|
tiptapCommandsView?: any
|
|
drawer?: DrawerItem<any>[]
|
|
}
|
|
|
|
const useStore = defineStore<any, StoreProps>('store', () => {
|
|
return {
|
|
tiptapCommandsView: null,
|
|
drawer: [],
|
|
}
|
|
})
|
|
|
|
export default useStore
|