参考文章:
详解基于vue,vue-router, vuex以及addRoutes进行权限控制
用addRoutes实现动态路由
如何用 Vue 实现前端权限控制
VUE中如何实现后台管理系统的权限控制