How to use routing of vue js in AEM.
Use Case: We have a component called "Login" , I want to load one more component if the user logged in successfully
FYI: The Vue components are integrated with AEM and we are loading the AEM components on the page.
May be you can try to trigger event from 1 view to another.
So, when a user logs in, you can fire the event which the other view/component will be listening to.
You can refer to this article https://www.danvega.dev/blog/2019/06/05/triggering-events-router-vue/
We did something similar to this using broadcasts in angular js. May be you can try on the same lines.
Does contexthub solves your use case ? based on a defined segment (in your case user logged in) you will show the component else not.
Please have a look at below discussions: