有没有办法使用 BrowserRouter 和 react-admin 来获得没有#
字符的 URL?
问问题
538 次
1 回答
2
您必须提供自己的历史记录。见https://marmelab.com/react-admin/Admin.html#history
import createHistory from 'history/createBrowserHistory';
const history = createHistory();
const App = () => (
<Admin history={history}>
...
</Admin>
);
于 2018-07-05T19:02:17.780 回答