Uncaught Error: <br>[vue-router] route config “component“ for path: /home cannot be a string id.<br>
vue中引入路由是报错:Uncaught Error: <br>[vue-router] route config "component" for path: /home cannot be a string id.<br> Use an actual component instead。原因:compontent因为不正确。一开始的写法:解决:修改为:import dev
·
vue中引入路由是报错:Uncaught Error: <
br
>[vue-router] route config "component" for path: /home cannot be a string id.<
br
> Use an actual component instead。
原因:compontent因为不正确。
一开始的写法:
解决:修改为:
import device from '@/page/device/device'
{
path: '/device',
component: home,
name: '设备',
iconCls:'el-icon-message',
children:[
{
path:'index',
component: ,
name:'设备列表'
}
]
}
更多推荐
已为社区贡献3条内容
所有评论(0)