摘要: 123 阅读全文
posted @ 2020-09-01 15:58 成胜利同志 阅读(5) 评论(0) 推荐(0)
摘要: router.beforeEach((to,from,next)=>{ if(to.matched.some(res=>res.meta.isLogin)){//判断是否需要登录 if (sessionStorage['username']) {// 判断吧是否存在token next(); }el 阅读全文
posted @ 2020-09-01 13:48 成胜利同志 阅读(47) 评论(0) 推荐(0)