一、错误:Uncaught Error: [vue-router] route config "component" for path: /detail cannot be a string id. Use an actual component instead.
解决方案:路由配置中
import Detail from './components/detail.vue';
const routers = [
......
{
path:'/detail',
name:'detail',
component:'Detail' //这里是组件名称,不能加引号!!!!去掉引号,问题解决。
},
......
]
二、警告:vue-router.esm.js?8c4f:16 [vue-router] Route with name 'detail' does not exist
解决方案&