解决营销系统bug

This commit is contained in:
red-deng-deng 2021-11-25 14:12:58 +08:00
parent 7e41af12b7
commit 6d0f7c7ed7
2 changed files with 9 additions and 6 deletions

View File

@ -57,7 +57,7 @@ export default class topNav extends React.Component{
let pathnameBreak=sessionStorage.getItem('pathname2')
const pathname=window.location.href.lastIndexOf('\/');
const pathnamestr=window.location.href.substr(pathname);
let breakflag=pathnamestr.includes('add');
let breakflag=pathnamestr.includes('add')||pathnamestr.includes('key-list');
let sedcbreakflag=pathnamestr.includes('plan-create');
let planbreakflag = pathnamestr.includes('mytempMould')
let editbreakflag = pathnamestr.includes('edittemplate')

View File

@ -141,11 +141,14 @@ export default class acclist extends React.Component{
//营销系统名称
linkTo(row){
sessionStorage.setItem('showflag',true);
let arr= [{
group:'营销计划管理',
items:[{path:'/home/key-list',name:'key列表'}]
}]
sessionStorage.setItem('menulinklist',JSON.stringify(arr));
// let arr= [{
// group:'营销计划管理',
// items:[{path:'/home/key-list',name:row.title+'key列表'}]
// }]
let arr=[{pagetitle:'编辑',items:[{path:'/home/key-list',name:'营销计划管理'},
{path:'/home/key-list',name:row.title+'key列表'}
]}]
sessionStorage.setItem('breaknav',JSON.stringify(arr));
sessionStorage.setItem('linkshowname',"营销计划管理");
sessionStorage.setItem("key_plan_id",row.id)
this.props.history.push('/home/key-list');