摘要: 有些页面需要登录后才能访问,可以进行判断,如果需要登录就重定向 { path: '/hello', name: 'Dcoument', //不使用全局钩子函数监控路由的时候,可以对路由单个使用 beforeEnter (to,from,next) { console.log('访问这个路由时会执行' 阅读全文
posted @ 2018-03-31 08:18 乐得逍遥 阅读(856) 评论(0) 推荐(0)