//业务需要跳转的页面
let needRefresh = sessionStorage.getItem("need-refresh");
if(needRefresh){
sessionStorage.removeItem("need-refresh");
location.reload();
}
//然后被跳转的页:
sessionStorage.setItem("need-refresh", true);
//业务需要跳转的页面
let needRefresh = sessionStorage.getItem("need-refresh");
if(needRefresh){
sessionStorage.removeItem("need-refresh");
location.reload();
}
//然后被跳转的页:
sessionStorage.setItem("need-refresh", true);