17 lines
402 B
TypeScript
Executable File
17 lines
402 B
TypeScript
Executable File
import { createSharedComposable } from '@vueuse/core'
|
|
|
|
const _useDashboard = () => {
|
|
const router = useRouter()
|
|
|
|
defineShortcuts({
|
|
'g-a': () => router.push('/actividades'),
|
|
'g-c': () => router.push('/conferencias'),
|
|
'g-f': () => router.push('/favoritos'),
|
|
'g-h': () => router.push('/historial')
|
|
})
|
|
|
|
return {}
|
|
}
|
|
|
|
export const useDashboard = createSharedComposable(_useDashboard)
|