Configuration 如何向nuxt.config.js中的components/dirs选项添加另一个路径和前缀耦合?

Configuration 如何向nuxt.config.js中的components/dirs选项添加另一个路径和前缀耦合?,configuration,nuxt.js,Configuration,Nuxt.js,在numxt.config.js中,如何添加另一个路径/前缀耦合 components: { dirs: [ '~/components', { path: '~/components/profile/', prefix: 'Profile' } ] } 通过将另一个对象添加到数组中: 组件:{ 目录:[ “~/components”, { 路径:“~/components/profile/”, 前缀:“配置文件” }, { 路径:“~/

numxt.config.js
中,如何添加另一个
路径
/
前缀
耦合

components: {
  dirs: [
    '~/components',
    {
      path: '~/components/profile/',
      prefix: 'Profile'
    }
  ]
}

通过将另一个对象添加到数组中:

组件:{
目录:[
“~/components”,
{
路径:“~/components/profile/”,
前缀:“配置文件”
},
{
路径:“~/components/other path/”,
前缀:“其他前缀”
}
]
}