const router = new Router({ mode: 'history', //去掉url中的# routes: [] --------- NGINX中 VUE路由去掉#后的配置问题 location =/ { rewrite index.html permanent; try_files $uri $uri/ /index.html; } 具体可查看 另一个