VUE路由初始化 Cannot read property '$

2018-02-09  本文已影响0人  伐无道

记录一下学习日志,免得再犯这种低级错误

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

上一篇下一篇

猜你喜欢

热点阅读