I am working on a app made with Framework7 and vuejs.
I have bottom toolbar but i have routing problem here.
here's my code
route.js
{
path: '/about/',
component: require('./assets/vue/pages/about.vue')}
main.vue
<div class="toolbar tabbar tabbar-labels">
<div class="toolbar-inner">
<a class="item-link tab-link" href="/about/">
<i class="fa fa-home"></i>
<span class="tabbar-label">Home</span>
</a>
</div>
</div>
when i clicked the toolbar i get the error Cannot GET /about/.
but when i clicked same link from outside the toolbar, it works...
Someone have any idea or have a better solution?
'/about/'
route a name property in its definition in theroute.js
file (likename: 'about',
) and then using arouter-link
tag to generate the link to that named route via<router-link :to="{ name: 'about' }">
– Bacchius