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 device from '@/page/device/device'
{
.
原创
2021-07-13 16:10:37 ·
3194 阅读 ·
0 评论