The format of the usage parameter params of the breadcrumb component of antd

        routes={[
          {
            path: "search/products",
            breadcrumbName: ""
          },
          {
            path: "goods-details",
            breadcrumbName: ""
          },
        ]}
        params={{
          
        }}

in what format should params be transmitted so that path in routes can receive parameters on the page?


two methods
1. When defining a route, write
2 in the form of path: 'search/products/:params1/:params2' . When you jump, path: 'search/products?param1=xxxx' to write

Menu