摘要: 全局前置守卫 通常用来判断是否登录(main.js配置) to:进入到哪个路由去,from:从哪个路由离开 router.beforeEach((to, from, next) => { next() // 放行 next(false) // 取消执行 next('/')或 next({path:' 阅读全文
posted @ 2021-05-18 16:10 cielw 阅读(62) 评论(0) 推荐(0)