vue 路由钩子 判断是否登陆 进入不一样页面

{ path: '/repository', name: 'repository', meta: { requireAuth: true, // 添加该字段,表示进入这个路由是须要登陆的 }, component: Repository }, router.beforeEach((to, from, next) => {   if (to.matched.some(record => record
相关文章
相关标签/搜索