React-router-dom returns no refresh

problem description

use react-router-dom "s HashRouter to create routes for Link to jump to, how to return to the previous layer without refreshing the page

the environmental background of the problems and what methods you have tried

"react-router-dom": "^ 4.3.1"
return using window.history.go (- 1) will reload the page

related codes

    <HashRouter>
         <div>
             <Route path="/" exact component={Supermarket} />
             <Route path="/app/:mID" exact component={App} />
         </div>
    </HashRouter>
    
    <Link to={"/app/"+item.marketInfoId}>
      app
   </Link>
May.25,2021

this.props.history.goBack ()


this.props.history.goBack () does not work on ios, is there any solution

Menu