Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

menu这边有个问题请教下。 #32

Open
tianzhiyahaizhijiao opened this issue Dec 6, 2017 · 6 comments
Open

menu这边有个问题请教下。 #32

tianzhiyahaizhijiao opened this issue Dec 6, 2017 · 6 comments

Comments

@tianzhiyahaizhijiao
Copy link

71xcnr woxxu 9 46kdjw0
以teacher这个角色登陆的时候,menu这边显示部分,这部分代码在哪,可否给我指向下,没找到,麻烦了。

@pmg1989
Copy link
Owner

pmg1989 commented Dec 11, 2017

菜单栏左侧权限控置可以参阅src/routes/App/layout/Menu.jsgetMenusByPower方法

image

@tianzhiyahaizhijiao
Copy link
Author

这边尝试过了,把cur==1 值换成其他的,对应到menu.js中对应,不起作用

@pmg1989
Copy link
Owner

pmg1989 commented Dec 11, 2017

为什么要改成其他值呢?这里当时有个约定,cur===1即表示菜单的可见性了

@tianzhiyahaizhijiao
Copy link
Author

我知道你的意思,那这边换成 teacher这个角色的时候,菜单这边显示不全,这段代码我一直没找到,其他的都好理解

@pmg1989
Copy link
Owner

pmg1989 commented Dec 11, 2017

你看下routes/Role/UserPower.js,这块是配置权限的代码

@tianzhiyahaizhijiao
Copy link
Author

好的,谢谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants