解决营销系统bug
This commit is contained in:
parent
7e41af12b7
commit
6d0f7c7ed7
|
@ -57,7 +57,7 @@ export default class topNav extends React.Component{
|
||||||
let pathnameBreak=sessionStorage.getItem('pathname2')
|
let pathnameBreak=sessionStorage.getItem('pathname2')
|
||||||
const pathname=window.location.href.lastIndexOf('\/');
|
const pathname=window.location.href.lastIndexOf('\/');
|
||||||
const pathnamestr=window.location.href.substr(pathname);
|
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 sedcbreakflag=pathnamestr.includes('plan-create');
|
||||||
let planbreakflag = pathnamestr.includes('mytempMould')
|
let planbreakflag = pathnamestr.includes('mytempMould')
|
||||||
let editbreakflag = pathnamestr.includes('edittemplate')
|
let editbreakflag = pathnamestr.includes('edittemplate')
|
||||||
|
|
|
@ -141,11 +141,14 @@ export default class acclist extends React.Component{
|
||||||
//营销系统名称
|
//营销系统名称
|
||||||
linkTo(row){
|
linkTo(row){
|
||||||
sessionStorage.setItem('showflag',true);
|
sessionStorage.setItem('showflag',true);
|
||||||
let arr= [{
|
// let arr= [{
|
||||||
group:'营销计划管理',
|
// group:'营销计划管理',
|
||||||
items:[{path:'/home/key-list',name:'key列表'}]
|
// items:[{path:'/home/key-list',name:row.title+'key列表'}]
|
||||||
}]
|
// }]
|
||||||
sessionStorage.setItem('menulinklist',JSON.stringify(arr));
|
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('linkshowname',"营销计划管理");
|
||||||
sessionStorage.setItem("key_plan_id",row.id)
|
sessionStorage.setItem("key_plan_id",row.id)
|
||||||
this.props.history.push('/home/key-list');
|
this.props.history.push('/home/key-list');
|
||||||
|
|
Loading…
Reference in New Issue