export default new Router({ routes: [ { path: '/', name: 'HelloWorld', component: HelloWorld, }, { //动态路由 path: '/HelloWorld2/:id', name: 'HelloWorld2', component: HelloWorld2, }, { path: '/HelloWorld3', name: 'HelloWorld3', component: HelloWorld3, }…