摘要: 在写登录注册的路由守卫的时候,如果直接进行判断,会出现错误 router.beforeEach((to,from,next)=>{ if(VueCookies.get("token")){ next() }else{ next("/login") } }) 所以要在判断的时候添加白名单,在路由守卫中 阅读全文
posted @ 2023-10-27 11:02 瑞姆 阅读(114) 评论(0) 推荐(0) 编辑