Download packages/effects/hooks/src/use-refresh.ts from binhugg3/admin: direct link, hf CLI and curl.
- Browser
- Download file 295 Bytes
-
https://huggingface.co/spaces/binhugg3/admin/resolve/main/packages/effects/hooks/src/use-refresh.ts
- Command line
-
hf download hf://spaces/binhugg3/admin/packages/effects/hooks/src/use-refresh.ts
-
curl -L -o use-refresh.ts https://huggingface.co/spaces/binhugg3/admin/resolve/main/packages/effects/hooks/src/use-refresh.ts
295 Bytes
| import { useRouter } from 'vue-router'; | |
| import { useTabbarStore } from '@vben/stores'; | |
| export function useRefresh() { | |
| const router = useRouter(); | |
| const tabbarStore = useTabbarStore(); | |
| async function refresh() { | |
| await tabbarStore.refresh(router); | |
| } | |
| return { | |
| refresh, | |
| }; | |
| } | |