//设置路由
const router =new VueRouter({
mode:'history',
base:__dirname,
routes:[
{path:"/",components:Users},
{path:"/test",components:Test}
]
})
百度一下,是因为是component
//设置路由
const router =new VueRouter({
mode:'history',
base:__dirname,
routes:[
{path:"/",components:Users},
{path:"/test",components:Test}
]
})
百度一下,是因为是component
本文标题:VUE路由初始化 Cannot read property '$
本文链接:https://www.haomeiwen.com/subject/kesthqtx.html
网友评论