解决key码日志查询后返回列表展示空白页

This commit is contained in:
Apple 2022-06-08 14:08:44 +08:00
parent b870888028
commit 19e17ab307
1 changed files with 9 additions and 9 deletions

View File

@ -304,17 +304,17 @@ export default class acclist extends React.Component {
sessionStorage.setItem("keyCode", rowData.key);
// this.props.history.push("/home/key-log");
window.open('#/home/key-log');
sessionStorage.setItem("pathname2", "/home/key-log");
// sessionStorage.setItem("pathname2", "/home/key-log");
let cur_nav = sessionStorage.getItem("breakchangenav");
// let cur_nav = sessionStorage.getItem("breakchangenav");
if (cur_nav.length > 0 && cur_nav[0].items) {
cur_nav[0].items.push({
path: "/home/key-log",
name: cur_nav[0].items[cur_nav[0].items.length - 1].name + "日志",
});
}
sessionStorage.setItem("breaknav", JSON.stringify(cur_nav));
// if (cur_nav.length > 0 && cur_nav[0].items) {
// cur_nav[0].items.push({
// path: "/home/key-log",
// name: cur_nav[0].items[cur_nav[0].items.length - 1].name + "日志",
// });
// }
// sessionStorage.setItem("breaknav", JSON.stringify(cur_nav));
}
}
multipleCancel() {