调整路由
This commit is contained in:
parent
791f470d80
commit
ad60fd1ba2
|
@ -58,11 +58,11 @@ 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')||pathnamestr.includes('key-list');
|
||||
let sedcbreakflag=pathnamestr.includes('plan-create');
|
||||
let breakflag=pathnamestr.includes('add')||pathnamestr.includes('key-list')||pathnamestr.includes('key-edit')||pathnamestr.includes('exchangecode-edit')||pathnamestr.includes('plan-edit');
|
||||
let sedcbreakflag=pathnamestr.includes('plan-create');
|
||||
let planbreakflag = pathnamestr.includes('mytempMould')
|
||||
let editbreakflag = pathnamestr.includes('edittemplate')
|
||||
let breakchange = pathnamestr.includes('exchangecode-add')
|
||||
let breakchange = pathnamestr.includes('exchangecode-add')|| pathnamestr.includes('key-edit');
|
||||
if(breakchange){
|
||||
breaknav=JSON.parse(sessionStorage.getItem('breakchangenav'))
|
||||
}
|
||||
|
|
|
@ -163,7 +163,7 @@ export default class acclist extends React.Component{
|
|||
},
|
||||
{
|
||||
"path": "/home/exchangecode-add",
|
||||
"name": "编辑兑换码"
|
||||
"name": "编辑:"+rowData.title
|
||||
}
|
||||
]}]
|
||||
sessionStorage.setItem("code_id",rowData.id)
|
||||
|
|
|
@ -470,6 +470,13 @@ export default class acclist extends React.Component{
|
|||
sessionStorage.setItem("plan_id",row.id)
|
||||
let link = window.location.href.replace(window.location.hash,"#/home/plan-edit");
|
||||
window.open(link, "_blank")
|
||||
|
||||
sessionStorage.setItem('showflag',true);
|
||||
let arr=[{pagetitle:'编辑',items:[{path:'/home/key-list',name:'营销计划管理'},
|
||||
{path:'/home/key-list',name:'编辑:'+row.title}
|
||||
]}]
|
||||
sessionStorage.setItem('breaknav',JSON.stringify(arr));
|
||||
sessionStorage.setItem('linkshowname',"营销计划管理");
|
||||
|
||||
}
|
||||
render(){
|
||||
|
|
Loading…
Reference in New Issue