Using antd, an error is reported when traversing the redirected url as shown in the figure
import {withRouter} from 'react-router-dom'
...
...
export default withRouter(Index);
Use withRouter to solve successfully
Using antd, an error is reported when traversing the redirected url as shown in the figure
import {withRouter} from 'react-router-dom'
...
...
export default withRouter(Index);
Use withRouter to solve successfully