From 6d0f7c7ed725459f6ab0e7f95f93b6270fdbceec Mon Sep 17 00:00:00 2001 From: red-deng-deng <1924913374@qq.com> Date: Thu, 25 Nov 2021 14:12:58 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E8=90=A5=E9=94=80=E7=B3=BB?= =?UTF-8?q?=E7=BB=9Fbug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/subnav/main.js | 2 +- src/pages/plan/list/list.js | 13 ++++++++----- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/components/subnav/main.js b/src/components/subnav/main.js index d822a6d5..c79b1919 100644 --- a/src/components/subnav/main.js +++ b/src/components/subnav/main.js @@ -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') diff --git a/src/pages/plan/list/list.js b/src/pages/plan/list/list.js index 4d9584cb..4a43ee1e 100644 --- a/src/pages/plan/list/list.js +++ b/src/pages/plan/list/list.js @@ -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');