Commit bba9926f by wangshuo

公共头部返回功能修改

parent 613b12a1
......@@ -15,6 +15,8 @@ class HeaderBar extends Component {
}
if(state.records && state.records.length > 1){
window.history.go(-1);
}else if(state.from && state.from.pathname) {
location.replace(`${state.from.pathname}${state.from.search}`)
}else{
window.location.href = window.location.origin
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment