var vm =new Vue({
el:"#app",
render:c=>c(app),
router
})
var router=new VueRouter({
routes:[
{path:'/account',component:account},
{path:'/goodslist',component:goodslist}
]
})
更改:
var router=new VueRouter({
routes:[
{path:'/account',component:account},
{path:'/goodslist',component:goodslist}
]
})
var vm =new Vue({
el:"#app",
render:c=>c(app),
router
})