-
-
Notifications
You must be signed in to change notification settings - Fork 8.2k
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
remove menu authorized #2911
remove menu authorized #2911
Conversation
Deploy preview for ant-design-pro ready! Built with commit 75c7e90 |
BasicLayout.js 已经太长 太可怕了。放到别的地方去了吧,modal 也许是个好办法。 |
题外话,@xiaohuoni 有没有兴趣加入我们。 |
@xiaohuoni 楼上是我们老板 |
@chenshuai2144 按这种思路可以吗? |
@afc163 感谢,我暂时离不开福州😁 |
可以的,把权限做为了filter的一个参数,现在就是这么做的,只是埋的比较深 |
@chenshuai2144 帅帅,看下,要怎么修改 |
新建一个菜单的modal。menudata 处理全部放进去 |
考虑过,但是感觉这么做实际意义不大,真正用到项目开发中,页面都有自己的model,而且这个menudata可能也是从服务端获取的,又要删掉他的model |
menudata 从服务端获取的话只要 |
那我改一下,是有点奇怪。 |
感觉放到工具类里面更合适 |
modal 吧, modal 本来就是为了管理各种副作用的 |
把menuData 做成mock呗,我们现在的项目这块改成了从服务端获取,其实大部分项目菜单也是从服务端获取的,菜单权限控制一般在服务端做。拜托,要不每次开项目使用最新版本都要改一次。 |
@qteamcheng 理解,预计和物料方案一起处理这些问题。 |
…into remove-menu-authorized # Conflicts: # src/layouts/BasicLayout.js
@xiaohuoni @chenshuai2144 , 现在菜单数据放到modal 中好多了。感谢。 不知道说清楚了没。:) |
@qteamcheng #3103 这里跟进 |
Close: #2910
在最外层对数据做一个过滤,这样menu里面就直接展示数据就好了,不需要其他多余的逻辑?
如果觉得这样可以的话,我再删掉menu里面的多余逻辑