If the user is already logged-in then how can I redirect user to "dashboard" if he tries to visit the "sign-in" page?
In current scenario:
If the user is logged-in, still able to visit "sign-in" page and type login credentials.
Hi,
You can implement this in file src/components/page-layouts/Auth.vue
Inside the mounted function check if a user is authenticated and if he is already authenticated you can redirect the user to a dashboard page.
onMounted(() => {
if (store.getters.isUserAuthenticated) {
router.push({ name: "dashboard" });
}
});
thanks
Unlock the potential of your business with our expert SEO services. Drive traffic, boost rankings, and dominate search engine results today!
Discover our beautiful lawn dress designs to improve your fashion sense. Discover an outstanding selection of stylish and simple clothing that will make you shine on any occasion. Get the perfect fusion of beauty and style by placing your order now.