diff --git a/src/pages/exchangepage/edittemplate/main.js b/src/pages/exchangepage/edittemplate/main.js
index c6b1dc18..b5b4ec39 100644
--- a/src/pages/exchangepage/edittemplate/main.js
+++ b/src/pages/exchangepage/edittemplate/main.js
@@ -529,7 +529,7 @@ export default class edittemplate extends React.Component{
@@ -653,7 +653,7 @@ export default class edittemplate extends React.Component{
{
this.state.pageInfo ? (
-
+
diff --git a/src/pages/login/loginform.js b/src/pages/login/loginform.js
index dfce7d4e..db1057cc 100644
--- a/src/pages/login/loginform.js
+++ b/src/pages/login/loginform.js
@@ -36,35 +36,35 @@ function FormDom(props) {
Notify.success(msg);
sessionStorage.setItem('showflag',true);
let menuList=response.menu;
- try{
- menuList.forEach(item=>{
- if(item.id===16){
- if(item.child&&item.child.length>0){
- let obj=item.child.filter(item=>item.level==5);
- sessionStorage.setItem('pathname2',obj[0].router);
- sessionStorage.setItem('menulinklist',JSON.stringify(item.child));
- }else{
+ if(response.menu&&response.menu.length>0){
+ sessionStorage.setItem('activeMenu',JSON.stringify(response.menu));
+ try{
+ menuList.forEach(item=>{
if(item.child&&item.child.length>0){
let obj=item.child.filter(item=>item.level==5);
sessionStorage.setItem('pathname2',obj[0].router);
sessionStorage.setItem('menulinklist',JSON.stringify(item.child));
+ if(item.id==16){
+ sessionStorage.setItem('linkshowname',"营销计划管理");
+ setTimeout(()=>{
+ props.history.push('/home/plan-list')
+ },1000);
+ throw '终止循环'
+ }else{
+ sessionStorage.setItem('linkshowname',obj[0].title);
+ setTimeout(()=>{
+ props.history.push(obj[0].router)
+ },1000);
+ }
}
- }
-
- throw '终止循环'
- }else{
-
- }
- })
- }catch(e){
- console.log(e)
- }
-
- sessionStorage.setItem('activeMenu',JSON.stringify(response.menu));
- sessionStorage.setItem('linkshowname',"营销计划管理");
- setTimeout(()=>{
- props.history.push('/home/plan-list')
- },1000);
+ })
+ }catch(e){
+ console.log(e)
+ }
+ }else{
+ Notify.clear();
+ Notify.warn('请先联系管理员配置权限菜单');
+ }
},err=>{
if(res.code==-2){
setYzmcode(true);
diff --git a/src/pages/plan/add/add.js b/src/pages/plan/add/add.js
index a62147d7..c1d7bbad 100644
--- a/src/pages/plan/add/add.js
+++ b/src/pages/plan/add/add.js
@@ -20,7 +20,7 @@ export default class add extends React.Component{
curstep:1,
menuList:[
{id:1,title:"营销计划",child:[{step:1,title:"新建计划"}]},
- {id:2,title:"key",child:[{step:1,title:"生产key"},{step:2,title:"绑定卡券"}]},
+ {id:2,title:"key",child:[{step:1,title:"生成key"},{step:2,title:"绑定卡券"}]},
{id:3,title:"落地页",child:[{step:1,title:"绑定落地页"}]},
],
phone_list:[],
diff --git a/src/pages/plan/add/edit.js b/src/pages/plan/add/edit.js
index 60654699..7c4f9bf7 100644
--- a/src/pages/plan/add/edit.js
+++ b/src/pages/plan/add/edit.js
@@ -20,7 +20,7 @@ export default class add extends React.Component{
curstep:1,
menuList:[
{id:1,title:"营销计划",child:[{step:1,title:"新建计划"}]},
- {id:2,title:"key",child:[{step:1,title:"生产key"},{step:2,title:"绑定卡券"}]},
+ {id:2,title:"key",child:[{step:1,title:"生成key"},{step:2,title:"绑定卡券"}]},
{id:3,title:"落地页",child:[{step:1,title:"绑定落地页"}]},
],
phone_list:[],