code: function withRoutes(AuthRoute) {
      return args => {
          const { render, ...rest } = args
          return (
              <AuthRoute {...rest} component={props => render(props)} />
          )
      }
  }
docs: 权限路由渲染