Answer the question
In order to leave comments, you need to log in
Why is it throwing a 404 error when going to router vue?
Hello. Faced a problem.
I have a component with a recursive call to itself. (building a sidebar )
Clicking in the sidebar happens
My router looks like thisthis.$router.push('/Structure/Items')
const routes = [
{
path: '/',
component: () => import('src/layouts/Platform.vue'),
children: [
{ path: '', component: () => import('pages/Main.vue') },
{ path: '/:sub/:formName', component: () => import('pages/Main.vue') }
]
},
{
path: '*',
component: () => import('pages/Error404.vue')
}
]
export default routes
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question