const router = new VueRouter({
mode: 'history',
routers: [
{
path: '/',
component: FantasyLine,
},
{
path: '/chinaworld',
component: ChinaWord
},
]
})
这段代码有什么问题?
routers写错了,不是routers,应该是routes。一般小错误是最坑人的,难debug.
就是不知道为啥编译器不报错