Vue에서 구성 요소 로드를 중지하고 리디렉션하는 방법 로그인하지 않은 사용자가 액세스할 수 없는 구성 요소가 있다.나는 이 논리를 에 적용했다.beforeCreate훅. 문제는 이렇게 해서 부품이 계속 로딩되는 것을 막을 수 없다는 것이다. 내가 원했던 것이다. 이건 내 암호야 내가 뭘 잘못하고 있는 거지?foreCreate 기능을라우터자체로 이동해야 한다.여기 내 Auth catch router.beforeEach( (to, from, next) => { if (to.matched.some(record => record.meta.requiresAuth)) { // if route requires auth and user isn't authenticated if (!store.state.Authenti..