在路由进行传参的过程中,使用query传递参数,既可以使用name,也可以使用path.
但是如果是params,只能使用name,不能使用path
route.params 为空为啥?应该是route.params.userId,而不是route.userId