vue nginx配置 记录线上配置坑,采用官方配置说明仍无效 记录线上配置坑,采用官方配置说明仍无效 在nginx配置为根路径’/’,设置官方推荐配置,仍不生效 官方推荐配置 location / { root /xxx路径/er-ui; try_files $uri $uri/ /index.html; } 采用以下配置解决问题 location / { root /xxx路径/er-ui;