如何在 nuxt.config.js 中的 components/dirs 选项中添加另一个路径和前缀对?
How to add another path and prefix couple to the components/dirs option in nuxt.config.js?
在nuxt.config.js
中,如何添加另一对path
/prefix
?
components: {
dirs: [
'~/components',
{
path: '~/components/profile/',
prefix: 'Profile'
}
]
}
通过将另一个对象添加到数组中:
components: {
dirs: [
'~/components',
{
path: '~/components/profile/',
prefix: 'Profile'
},
{
path: '~/components/other-path/',
prefix: 'Other Prefix'
}
]
}
在nuxt.config.js
中,如何添加另一对path
/prefix
?
components: {
dirs: [
'~/components',
{
path: '~/components/profile/',
prefix: 'Profile'
}
]
}
通过将另一个对象添加到数组中:
components: {
dirs: [
'~/components',
{
path: '~/components/profile/',
prefix: 'Profile'
},
{
path: '~/components/other-path/',
prefix: 'Other Prefix'
}
]
}