🔥码云GVP开源项目 12k star Uniapp+ElementUI 功能强大 支持多语言、二开方便! 广告
进入源代码路径为app/view/admin找到lndex.html的文件,其中130-136行中的源代码。 ``` {if $isadmin==2} <li class="layui-nav-item " lay-unselect title="总控台"> <a href="javascript:void(0)" onclick="window.parent.location.href='{:url('WebSystem/index')}'" lay-text="总控台" style=""> <img src="__STATIC__/admin/img/icondd/e.png" style="width:16px;;margin-top:-4px">&nbsp;&nbsp;<span style="height:52px;line-height:52px">总控台</span> </a> </li> {/if} ``` 表示为,当登录用户为管理员时,管理后台右上角显示为总控台,并跳转到总控台。 那么我们在第136行后面增加一段代码: ``` <!--新增使用手册--> {if $isadmin==1} <li class="layui-nav-item " lay-unselect title="使用手册"> <a href="https://www.kancloud.cn/jhzb1029/cpsyun/3098728" target="_blank" lay-text="使用手册" style=""> <img src="__STATIC__/admin/img/icondd/e.png" style="width:16px;;margin-top:-4px">&nbsp;&nbsp;<span style="height:52px;line-height:52px">使用手册</span> </a> </li> {/if} <!--新增使用手册--> ``` 表示,当用户不是管理员是,右上角顶部导航显示为用户手册,即跳转到用户手册的链接,其中https的链接需要修改成你们的用户使用手册。 效果如下: ![](https://img.kancloud.cn/1b/d7/1bd7d59c22bea91ca182020704a3e6ea_1913x717.png)