Answer the question
In order to leave comments, you need to log in
How to display 404 in Vue?
There are routes
const routes = [
{
path: '/admin',
component: () => import('../Pages/Dashboard.vue'),
name: 'dashboard',
children: [
{
path: 'requests',
component: () => import('../Pages/Dashboard.vue'),
name: 'requests'
},
]
},
{
path: '/admin/404',
component: () => import('../Pages/Errors/NotFound.vue'),
name: '404',
},
{
path: '*',
redirect: { name: '404' }
}
]
admin/blabla
admin/blabla/
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