Answer the question
In order to leave comments, you need to log in
Why is the vue-router component not being rendered at address?
Registered the component as a child with its own path:
{
path: '/auth',
name: 'Auth',
component: Auth,
children: [
{
path: '/auth/log',
alias: '/',
name: 'Login',
component: Login,
},
{
path: '/auth/reg',
name: 'Register',
component: Register,
},
{
path: '/auth/forgot',
name: 'Forgot',
component: ForgotPassword,
},
{
path: '/auth/complete',
name: 'complete',
component: afterRAF,
},
]
},
{
path: '/auth/complete',
name: 'complete',
component: afterLog,
},
/auth-complete
, everything will work. 1. Ввёл другой url: /auth/reg
2. Получил ту же проблему
Answer the question
In order to leave comments, you need to log in
Set child components to relative paths. Well, in router-link
in it’s :to
better to write not a path, but an object with a name and parameters, something like {name: 'complete'}
(and it’s better to clean up the registers of names :) )
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question