记录一下学习日志,免得再犯这种低级错误
VUE
Router初始化报错,Cannot read property '$createElement' of undefined
//设置路由
const router =new VueRouter({
mode:'history',
base:__dirname,
routes:[
{path:"/",components:Users},
{path:"/test",components:Test}]
})
百度一下,是因为是component