解决key码日志查询后返回列表展示空白页
This commit is contained in:
parent
b870888028
commit
19e17ab307
|
@ -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() {
|
||||
|
|
Loading…
Reference in New Issue