是否可以使用访问特定页面
.vue
具有自定义名称而不是默认名称的文件
index.vue
?
例如。
pages/
--| favorites/
-----| _id.vue
-----| list.vue
所以,当去
/favorites
它实际渲染的路由
pages/favorites/list.vue
文件
我该怎么做?
谢谢
附言:我必须访问页面的菜单如下:
<v-list-item
v-for="(item, i) in $t('menu.items')"
:key="i"
:to="item.to"
router
exact
active-class="default-class menu-custom-active"
>
<!-- ... -->
</v-list-item>
menu: {
items: [
{
title: 'Home',
to: '/'
},
{
title: 'Favorites',
to: '/favorites'
},
]
},