useRoute
ts
function useRoute<Name>(_name?): RouteLocationNormalizedLoadedGeneric;Returns the current route location. Equivalent to using $route inside templates.
Type Parameters
Name
Nameextendsstring|symbol=string|symbol
Parameters
_name
_name 可选,内部参数,用于TS内部获取参数,
Returns
RouteLocationNormalizedLoadedGeneric
