-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
能否提供一套没有权限管理的模板? #76
Comments
谢谢sendya的回复,我现在卡在了去掉权限的地方,如下代码块所示,我应该怎样修改呢?自己服务器的api,没有GetInfo这个方法,也没有role相关信息: src/permission.js `router.beforeEach((to, from, next) => { if (Vue.ls.get(ACCESS_TOKEN)) { |
文件 src/router/index.js#L11 改成这样
文件 src/main.js#L9 改成这样
文件 L122 修改 this.menus = asyncRouterMap.find((item) => item.path === '/').children
// this.menus = this.mainMenu.find((item) => item.path === '/').children |
您好,sendya,按照您的步骤,去掉了权限相关的验证了,非常感谢owner的帮忙哦. 顺便提一下,把下面的这段代码要注释掉修改为 next()。 |
直接不引入 |
我想请问一下,我想实现的是用我后端的Shiro的权限验证,直接不使用前端的权限控制(两套维护起来很麻烦),现在按照上面的方法进行更改,现在我需要进行正常的登录,但是直接页面都没有了 |
新版中找不到GlobalLayout.vue这个文件 |
感谢owner大大 |
我也遇到了这个问题,作为后端开发,真不明白为什么前端要搞的这么复杂。。。 |
我已经解决了这一块了,前面的步骤都是对的,但是要保留main.js里的第十五行permission检查 |
请问你现在实现的流程有登陆吗,还是说项目打开就是首页 |
有登陆流程 |
可以告知怎么实现吗 |
按照上面给的案例方法是可以进入到首页的,但是菜单不显示 |
菜单是指? |
可以加你微信或者qq吗我发截图给你 |
你就直接在这发吧
p.s. 感觉你的问题描述不是很清楚 以后可以参考这个:https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/master/README-zh_CN.md
|
问题已解决,看了你发的对于如何提问的文章对我很有帮助,非常感谢 |
好的 继续加油吧
|
/src/router/index.js 需要把asyncRouterMap,constantRouterMap合并到一块 |
您好,方便问下是怎么解决的吗 |
老哥 能交流下你是怎么改的吗? |
https://pro.antdv.com/docs/remove-authority-management |
这里去掉权限后, 如何把登录页直接屏蔽到, 打开直接是dashboard页面 |
目前系统mock的数据,耦合了权限管理模块,如果系统不需要权限,这个系统就不支持了哦。而且权限要按照你mock的数据格式去设置了。
The text was updated successfully, but these errors were encountered: