Answer the question
In order to leave comments, you need to log in
How to make an alias in Vue.js?
There are 2 pages:
index (path '/')
faq (path '/faq')
Also, users have links on hand, and about 30,000 pieces.
I need to make sure that when a user visits a page, let's say https://domen.ru/21095 , the index page is displayed to him, and the path is like this https://domen.ru/21095.
If I do this in the router/index.js file:
{
path: '**',
name: 'index',
component: index,
},
Answer the question
In order to leave comments, you need to log in
If you just write like this:
{
path: '/',
component: index,
children: [
{
path: ':id'
}
]
}
{path: '/', сomponent: index},
{path: '/:id', сomponent: index}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question