摘要: vue 拦截器 路由导航守卫 // 路由导航守卫 router.beforeEach((to,from,next)=>{ // to 是从哪里来 // from 去哪里 // next next() 代表放行 next('/login') 强制跳回login页面 // 1 判断当前路由是不是/log 阅读全文
posted @ 2019-11-08 11:48 巫小诗 阅读(1565) 评论(0) 推荐(0) 编辑