摘要: axios.intercetor.request.use(funcation(req){ axios.headers.authorization = sessionStrorage.getItem() }) router.beforeEach((to, from, next) =>{}) 阅读全文
posted @ 2021-04-11 23:25 晓欲望! 阅读(104) 评论(0) 推荐(0)
摘要: 前端的权限分为4个模块: 菜单栏 这个是需要后端传过来的数据直接进行绚烂 把这个数据存在Vuex中,这个有个问题就是重新刷新Vuex的数据会消失,所以需要把数据保存在sessionStorage中去。 界面栏 从刚刚的的菜单栏有些界面是没有,但是在浏览器的url中还是可以访问的到,所以这里需要使用到 阅读全文
posted @ 2021-04-11 23:12 晓欲望! 阅读(1548) 评论(0) 推荐(0)