vue后台管理系统权限管理解决方案
2022-08-03 09:57:03
193
{{single.collect_count}}

1,后台返回权限路由表。

2,前端渲染侧边栏时候根据后台返回的路由表进行逻辑判断渲染

3,在router的生命周期中判断token的过期时间

4,  在router的生命周期中判断to.path 是否存在于权限路由表。有则next 没有的话跳到无权限页面


回帖
全部回帖({{commentCount}})
{{item.user.nickname}} {{item.user.group_title}} {{item.friend_time}}
{{item.content}}
{{item.comment_content_show ? '取消' : '回复'}} 删除
回帖
{{reply.user.nickname}} {{reply.user.group_title}} {{reply.friend_time}}
{{reply.content}}
{{reply.comment_content_show ? '取消' : '回复'}} 删除
回帖
收起
没有更多啦~
{{commentLoading ? '加载中...' : '查看更多评论'}}