会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
大道至简,知易行难
卑微的活在这个世界上,只为那个为伟大的梦想
博客园
首页
新随笔
联系
订阅
管理
2020年9月1日
vue 全局导航 router.beforeEach()
摘要: 有些页面中 要登录后才能进入 这个时候就用到了 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)
编辑