fix: pass all arguments to proxied trpc client method

This commit is contained in:
Robin Wong
2023-03-18 03:15:49 +08:00
committed by GitHub
parent 7a69573fb9
commit 6595a1d306

View File

@@ -61,7 +61,7 @@ export function createNuxtProxyDecoration<TRouter extends AnyRouter> (name: stri
}), asyncDataOptions) }), asyncDataOptions)
} }
return (client as any)[path][lastArg](input) return (client as any)[path][lastArg](...args)
}) })
} }