解决 import { useRouteProps } from '@umijs/max' export default function Page() { const routeProps = useRouteProps() console.log(routeProps) // use `routeProps.custom_key` } 参数如下图 文档 https://umijs.org/docs/api/api#userouteprops