超简单
export default new Router({ //将mode 设置为‘history‘ 即可。默认情况是’hash’ 所以会有丑陋的# mode: 'history', routes: [ { path: '/', name: 'Home', component: Home } ] })