react跳转页面实现强制刷新
当使用umi中的history跳转页面但刷新时。
·
当使用umi中的history跳转页面但不刷新时
解决方法:
import { createBrowserHistory } from 'umi';
const SystemModuleAdd = (props) => {
const history = createBrowserHistory({
basename: '', //基链接
forceRefresh: true, //强制刷新
});
// 跳转路径
function editPath() {
history.push('/parkManagement/systemManagement');
}
}
更多推荐
已为社区贡献1条内容
所有评论(0)