Answer the question
In order to leave comments, you need to log in
Vue router in the finished site, how to set it up?
Good evening! I have a page on the site, for example:
sitename.ru/dash/vue.php
In fact, through .htaccess, the path looks like this:
sitename.ru/dash/vue
I want to practice using Vue on this page and, for example, I need it on this page navigation like
/dash/vue/home
/dash/vue/test
Tried:
const routes = [
{
path: '/dash/booster/',
redirect: {
name: 'home'
}
},
{
name: '/dash/booster/home',
path: '/home',
component: HomePage
},
{
name: '/dash/booster/test',
path: '/test',
component: TestPage
}
];
const routes = [
{
path: '/dash/vue/',
redirect: {
name: 'home'
}
},
{
name: '/dash/vue/home',
path: '/home',
component: HomePage
},
{
name: '/dash/vue/test',
path: '/test',
component: TestPage
}
];
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