修改router的mode为history就可以
const router = new VueRouter({mode: 'history', routes: [...]})
实际修改后需要注意修改assetPublicPath,调整静态资源路径,自己调试下,查看现有的路径,就知道改怎么改了