Here is my code here whatever route i give it takes me to the home page only . When I give path auth it takes me to the home can anyone explain me why , and clear my doubt ..
const routes = [ { path: "", component: () => import("layouts/MainLayout.vue"), props: true, children: [ { path: "auth", name: "auth", component: () => import("pages/AuthPage.vue"), }, { path: "", name: "home", component: () => import("pages/HomePage.vue"), }, ], }, // Always leave this as last one, // but you can also remove it { path: "/:catchAll(.*)*", component: () => import("pages/ErrorNotFound.vue"), },];
export default routes;