在router->index.js中mode类型默认为hash,修改为history const router = new vueRouter({ mode: 'history', routes: [...] }) 如果你使用了nginx,nginx首页配置中添加如下代码: location / { try_files $uri $uri/ /index.html; } 文献:http://150.158.83.118/blog?blog_id=44