import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
Vue.use(Router)
export default new Router({
mode: 'history', //启用history模式
routes: [
{
path: '/',
name: 'HelloWorld',
component: HelloWorld
}
]
})