摘要: 一、什么是路由守卫? 在路由跳转的时候能够进行重定向或一些其他的操作 二、类别 1、全局路由守卫 beforeEach(to, from, next) //跳转,常用于登陆 ​2、某个路由内独享的路由守卫 beforeEnter(to, from, next) // 写在某个路由里面 ​3、组件内的 阅读全文
posted @ 2022-08-14 10:40 三水儿 阅读(67) 评论(0) 推荐(0) 编辑