export function useRouteParam(name, init) { const route = useRoute() return computed(() => route.params[name] ?? init) }