解决【key码列表】进入key码日志列表返回到key码列表,再从key码列表返回到key批次列表时,展示了空白页面

This commit is contained in:
Apple 2022-06-08 11:48:43 +08:00
parent cd7694ec73
commit 71a7de9b44
1 changed files with 3 additions and 2 deletions

View File

@ -302,7 +302,8 @@ export default class acclist extends React.Component {
} }
if (key == 3) { if (key == 3) {
sessionStorage.setItem("keyCode", rowData.key); sessionStorage.setItem("keyCode", rowData.key);
this.props.history.push("/home/key-log"); // 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");
@ -657,7 +658,7 @@ export default class acclist extends React.Component {
<MenuItem key="1" disabled> <MenuItem key="1" disabled>
标记成已使用 标记成已使用
</MenuItem> </MenuItem>
<MenuItem key="2" disabled> <MenuItem key="2" disabled={rowData.status !=2}>
作废 作废
</MenuItem> </MenuItem>
<MenuItem key="3">日志</MenuItem> <MenuItem key="3">日志</MenuItem>