nginx部署vue项目刷新页面404

  location / {
          root  ./html/dist/;
          index index.html;
          try_files  $uri $uri/ /index.html;
  }

  添加红色配置
posted @ 2022-12-06 17:02    阅读(79)  评论(0编辑  收藏  举报