摘要: 有些页面中 要登录后才能进入 这个时候就用到了 router.beforeEach() 方法 *代码:main.js let isLogin = router.beforeEach((to,form,next)=>{ let isflag = to.matched.some(record=>{ re 阅读全文
posted @ 2020-09-01 15:16 kgwei 阅读(368) 评论(0) 推荐(0) 编辑