Answer the question
In order to leave comments, you need to log in
How to disable routing by condition in vue/nuxt?
Project on vue 2
export function createRouter() {
return new Router({
mode: 'history',
routes: [
{
path: '/',
component: Index,
name: 'index',
beforeEnter: () => {},
},
{
path: '/dashboard',
component: Dashboard,
name: 'dashboard',
},
{
path: '/reconstruction',
component: Reconstruction,
name: 'reconstruction',
},
],
});
}
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