摘要:
路由跳转前,可以用导航守卫判断是否登录,如果登录了就正常跳转,没有登录就把路由指向登录页面。 router.beforeEach((to, from, next) => { const nextRoute = [ 'api', 'my/index, 'course']; if(nextRoute.i 阅读全文
posted @ 2018-05-17 12:16 LY_Young 阅读(1854) 评论(0) 推荐(0)
posted @ 2018-05-17 12:16 LY_Young 阅读(1854) 评论(0) 推荐(0)