vue 路由鉤子 判斷是否登陸 進入不一樣頁面

{ path: '/repository', name: 'repository', meta: { requireAuth: true, // 添加該字段,表示進入這個路由是須要登陸的 }, component: Repository }, router.beforeEach((to, from, next) => {   if (to.matched.some(record => record
相關文章
相關標籤/搜索