细颗粒度权限设计思路
<p><a href="https://blog.csdn.net/qq_33594380/article/details/80037133" title="Vue:细粒度动态权限管理解决方案">Vue:细粒度动态权限管理解决方案</a></p>
<pre><code class="language-plantuml">@startmindmap
* 思路
** router_name
** action_name
@endmindmap
</code></pre>
<h3>前端</h3>
<ul>
<li>全菜单, 分配角色时用</li>
<li>自定义指令</li>
<li>角色菜单</li>
</ul>
<h3>后端</h3>
<ul>
<li>原始全菜单(api路径,权限字段)</li>
<li>角色菜单</li>
</ul>
<pre><code class="language-plantuml">skinparam backgroundColor #FCFCFC
!includeurl https://raw.githubusercontent.com/xuanye/plantuml-style-c4/master/core.puml
GREEN_ARROW
@startuml
start
:创建修改角色;
:读取原始全菜单;
:如修改,与角色菜单匹配状态;
:生成角色菜单;
stop
@enduml</code></pre>