大家好我已将我的应用程序部署到gh-pages但是当我点击搜索按钮时它会更改url栏中的链接,但页面没有被更改。非常感谢任何帮助
import React from 'react';
import ReactDOM from 'react-dom';
import { Provider } from 'react-redux';
import './index.css';
import App from './App';
import Home from './Home';
import Layout from './layout.js';
import { Router, Route, browserHistory, IndexRoute } from 'react-router';
import registerServiceWorker from './registerServiceWorker';
import createHashHistory from 'history/createHashHistory';
ReactDOM.render(
<Provider>
<Router history={ browserHistory } basename={process.env.PUBLIC_URL}>
<div>
<Route exact path = "/" component={ Home} />
<Route exact path = "/layout" component={ Layout } />
</div>
</Router>
</Provider>
,document.getElementById('root'));
registerServiceWorker();